Test your JavaScript Skills 50 Questions
Question 1 What will be the output of the following code? console.log(typeof null); A) “null”B) “undefined”C) “object”D) “number” Answer: C) “object” Explanation: In JavaScript, typeof null returns “object”. This is a well-known bug in JavaScript that exists for legacy reasons. Question 2 What is the output of the following code? console.log(0 == ‘0’); A) trueB) … Read more