JavaScript MCQ Quiz Hub

Javascript Multiple Choice Questions

Choose a topic to test your knowledge and improve your JavaScript skills

Why so JavaScript and Java have a similar name?





✅ Correct Answer: 2

______ JavaScript is also called client-side JavaScript.





✅ Correct Answer: 2

What are variables used for in JavaScript Programs?





✅ Correct Answer: 1

____ JavaScript statements embedded in an HTML page can respond to user events such as mouse clicks, form input, and page navigation.





✅ Correct Answer: 1

What should appear at the very end of your JavaScript? The <script LANGUAGE=”JavaScript”>tag





✅ Correct Answer: 1

Which of the following can’t be done with client-side JavaScript?





✅ Correct Answer: 3

Which of the following are capabilities of functions in JavaScript?





✅ Correct Answer: 3

______ tag is an extension to HTML that can enclose any number of JavaScript statements.





✅ Correct Answer: 1

How does JavaScript store dates in a date object?





✅ Correct Answer: 1

Which of the following attribute can hold the JavaScript version?





✅ Correct Answer: 1

What is the correct JavaScript syntax to write “Hello World”?





✅ Correct Answer: 3

Which of the following way can be used to indicate the LANGUAGE attribute?





✅ Correct Answer: 3

Inside which HTML element do we put the JavaScript?





✅ Correct Answer: 3

Which types of image maps can be used with JavaScript?





✅ Correct Answer: 2

Which of the following navigator object properties is the same in both Netscape and IE?





✅ Correct Answer: 1

Which is the correct way to write a JavaScript array?





✅ Correct Answer: 3

What does the <noscript> tag do?





✅ Correct Answer: 1

JavaScript entities start with _______ and end with _________.





✅ Correct Answer: 4

Which of the following best describes JavaScript?





✅ Correct Answer: 4

Choose the client-side JavaScript object?





✅ Correct Answer: 4

_____method evaluates a string of JavaScript code in the context of the specified object.





✅ Correct Answer: 1

Which of the following event fires when the form element loses the focus: <button>, <input>, <label>, <select>, <textarea>?





✅ Correct Answer: 2

The syntax of Eval is ________________





✅ Correct Answer: 2

JavaScript is interpreted by _________





✅ Correct Answer: 1

Using _______ statement is how you test for a specific condition.





✅ Correct Answer: 2