Podcast
Questions and Answers
In JavaScript, which function is used to display an output message to the user?
In JavaScript, which function is used to display an output message to the user?
- window.confirm()
- prompt()
- alert() (correct)
- window.prompt()
What will the following code display: 'alert(9+1);'?
What will the following code display: 'alert(9+1);'?
- 10 (correct)
- 9
- An error message
- 91
Which of the following objects is not directly related to JavaScript objects?
Which of the following objects is not directly related to JavaScript objects?
- form object
- dialog object (correct)
- document object
- window object
In JavaScript, what is the purpose of the document object?
In JavaScript, what is the purpose of the document object?
What is the syntactic rule for identifiers in JavaScript?
What is the syntactic rule for identifiers in JavaScript?
Which object is responsible for executing JavaScript entirely within the browser?
Which object is responsible for executing JavaScript entirely within the browser?
What is the purpose of the document.write()
method in JavaScript?
What is the purpose of the document.write()
method in JavaScript?
Which of the following is NOT a basic method of the Window object for creating dialog boxes?
Which of the following is NOT a basic method of the Window object for creating dialog boxes?
What is the purpose of the window.confirm()
method in JavaScript?
What is the purpose of the window.confirm()
method in JavaScript?
How can you access the document
object in JavaScript?
How can you access the document
object in JavaScript?
What is the purpose of the window.alert()
method in JavaScript?
What is the purpose of the window.alert()
method in JavaScript?
What is the relationship between the window
object and the document
object in JavaScript?
What is the relationship between the window
object and the document
object in JavaScript?
What does the 'prompt' method do in JavaScript?
What does the 'prompt' method do in JavaScript?
What is returned if a user clicks 'OK' without typing anything in the prompt box?
What is returned if a user clicks 'OK' without typing anything in the prompt box?
What does the 'window.alert' method do in JavaScript?
What does the 'window.alert' method do in JavaScript?
When using the + operator in JavaScript, what can it be used for?
When using the + operator in JavaScript, what can it be used for?
Which object in JavaScript has the capability to display dialog boxes?
Which object in JavaScript has the capability to display dialog boxes?
In JavaScript, which object allows interaction with the browser window?
In JavaScript, which object allows interaction with the browser window?