JavaScript MCQ Quiz | Set – 1Piyush PatilApril 29, 2023Web Development, JavaScript Quiz, Quizzes2 Comments Share your love 204 Created on April 25, 2023 By Piyush PatilJavaScript Quiz | Set - 1 1 / 10Which of the following is not a primitive data type in JavaScript? number boolean string array 2 / 10What does the 'typeof' operator return when used on a null value? "null" "object" "undefined" "NaN" 3 / 10What is the result of the following expression?5 + "5" 10 55 "55" "10" 4 / 10 What is the output of the following code?for (var i = 0; i < 5; i++) { setTimeout(function() { console.log(i); }, 1000);} 0 1 2 3 4 5 5 5 5 5 undefined undefined undefined undefined undefined The code will produce an error. 5 / 10What does the 'this' keyword refer to in JavaScript? The global object The object that the function is a method of The object currently being constructed by a constructor function All of the above 6 / 10Which of the following is not a looping structure in JavaScript? for loop while loop do-while loop switch statement 7 / 10What is the output of the following code?console.log(1 < 2 < 3); true false TypeError SyntaxError 8 / 10What is the output of the following code?var x = 1;var y = 2;console.log(x + y + "3"); 33 "33" 6 "63" 9 / 10Which of the following is not a valid data type in JavaScript? object null undefined decimal 10 / 10What is the difference between '==' and '===' operators in JavaScript? '==' compares values and '===' compares values and data types. '==' compares data types and '===' compares values. Both operators are identical in their functionality. None of the above. Your score isThe average score is 56% LinkedIn Facebook Twitter VKontakte 0% Restart quiz Share your love Previous Post Analog and Digital clock using HTML CSS and JavaScript Next Post Apple Watch 4 using HTML and CSS
15+ CSS Text Glitch EffectsPiyush PatilOctober 19, 2024HTML & CSS, Beginner, JavaScript, Web Design, Web Development
Gallery hover effect using HTML and CSSPiyush PatilJune 15, 2024HTML & CSS, Beginner, Card Designs, Frontend, Web Development
Text with hover effect using pure cssPiyush PatilJune 14, 2024HTML & CSS, Beginner, Frontend, Web Development
Best think to do…..
Thanks for these quizzes..,
I am glad you liked it Ramesh. Thank You!