What is the output of the following JavaScript code?
What is the output of the following JavaScript code?
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या है?
<script>
var a;
document.getElementById(“demo”).inner
HTML = a + 1 ;
</script>
Detailed Solution & Logic
NaN
उपरोक्त प्रोग्राम को रन करने के बाद NaN (Not a Number) आउटपुट आयेगा क्योंकि किसी Null वैरिएबल में कोई नम्बर जोड़ा जाता है तो आउटपुट NaN ही देगा।
Similar Practice Questions
Which feature is used to combine cells vertically? / कोशिकाओं को लंबवत…
Which feature is used to combine cells vertically? कोशिकाओं को लंबवत रूप से संयोजित करने...
Which of the following Programming languages are used for Back end purpose:
Which of the following Programming languages are used for Back end purpose: निम्नलिखित में से...
What is the shortcut to add a website to ‘Favorites’?
What is the shortcut to add a website to ‘Favorites’? किसी वेबसाइट को ‘पसंदीदा (फेवरेट)’...
Which of the following property is used to control the space between the border and content in a table?
Which of the following property is used to control the space between the border and...
Color can be declared using the color property available in CSS for-…
Color can be declared using the color property available in CSS for- CSS में उपलब्ध...
An element can be accessed in JavaScript using:
An element can be accessed in JavaScript using: जावास्क्रिप्ट में एक एलीमेंट को___ का उपयोग...
Shortcut keys for rotating canvas 90 Degree clockwise is
Shortcut keys for rotating canvas 90 Degree clockwise is____ कैनवास को 90 डिग्री क्लॉकवाइज घुमाने...