Solved

Which of the Following Is the Best Way to Prompt

Question 36

Multiple Choice

Which of the following is the best way to prompt for number of children and store the input as a number?


A) numOfKids = parseInt(prompt("Number of children:", "") ) ;
B) numOfKids = parseFloat(prompt("Number of children:", "") ) ;
C) numOfKids = confirm("Number of children:") ) ;
D) prompt(numOfKids, "Number of children:") ) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions