Solved

Which of the Following Is the Best Way to Prompt

Question 53

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents