Predict the result: var bar = 1, fun = {}; fun: { bar:2; x: ++bar; }; fun.x + fun.bar + bar;
Correct
Incorrect
Question 2 of 10
2. Question
Determine the result – String(“Hello”) === “Hello”;
Correct
Incorrect
Question 3 of 10
3. Question
What is the correct JavaScript syntax to print “DataFlair” in the console?
Correct
Incorrect
Question 4 of 10
4. Question
Which of the following print content on the browser window?
Correct
Incorrect
Question 5 of 10
5. Question
Which method will you use to round the number 24.76 to the nearest integer?
Correct
Incorrect
Question 6 of 10
6. Question
Which of the following statements will show a message as well as ask for user input in a popup?
Correct
Incorrect
Question 7 of 10
7. Question
Which of the following is an event listener in JavaScript?
Correct
Incorrect
Question 8 of 10
8. Question
You are a web designer in your company and need to create a JavaScript project for form validation. What are the advantages that JavaScript provides for forms?
Correct
Incorrect
Question 9 of 10
9. Question
What is the syntax of a “for” statement in JavaScript?
Correct
Incorrect
Question 10 of 10
10. Question
Which of the given options is an incorrect variable name?
Correct
Incorrect
Hope, you liked the set of questions in this JavaScript Quiz.
If you have any queries and suggestions, post them in the comment box.
Your opinion matters Please write your valuable feedback about DataFlair on Google
IT IS VERY GOOD AND INTERESTING!!! AND BETTER TO EVALUVATE OURSELF!!!
We are happy that you liked DataFlair Javascript quiz. Keep learning with DataFlair to enhance your knowledge.
String(“Hello”) === “Hello”;
Concept wise it’s true, but syntax error in the console.
Hi
We can enjoy!