Single Choice
Easy
QWhat will be the output of following JS program?
function getcube()
{
var number=document.getElementById("number").value;
alert(number*number*number);
}
ID: #5082
Javascript DOM & Event Handling MCQ
166 views
Question Info
#5082Q ID
EasyDifficulty
Javascript DOM & Event Handling MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The value of the input text is obtained using the document.getElementById() method. But the input field's id must be defined.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic