Q1: Which symbol is used for single-line comments in JavaScript?
Q2: Which company developed JavaScript?
Q3: Which of the following is a correct variable declaration?
Q4: Which keyword is used to declare a constant in JavaScript?
Q5: How do you write 'Hello World' in an alert box?
Q6: What is the result of typeof null?
Q7: Which method adds a new element at the end of an array?
Q8: What will `console.log(2 + '2')` output?
Q9: What does the `===` operator do?
Q10: Which method converts JSON to a JavaScript object?
Q11: What is the default value of an uninitialized variable?
Q12: Which object is the root of the DOM?
Q13: Which keyword is used to define a class in JavaScript?
Q14: Which loop will run at least once?
Q15: Which function is used to delay execution?
Q16: Which array method removes the first element?
Q17: Which symbol is used for template literals?
Q18: Which method joins array elements into a string?
Q19: How do you define an arrow function?
Q20: What is the output of `typeof NaN`?
Q21: Which function is used to round a number down?
Q22: Which operator is used for logical AND?
Q23: How do you check if 'x' is not equal to 'y'?
Q24: How do you get the length of an array?
Q25: What will `typeof undefined` return?
Q26: What is the result of `0 == '0'`?
Q27: Which keyword is used to define a block-scoped variable?
Q28: Which event occurs when the user clicks on an HTML element?
Q29: Which of the following is not a primitive data type?
Q30: What will `Boolean('')` return?
Q31: How do you create an object?
Q32: Which method can be used to remove elements from an array?
Q33: What does DOM stand for?
Q34: What is the correct syntax for an if statement?
Q35: Which object is used for mathematical functions?
Q36: How do you stop a setInterval() timer?
Q37: What is a callback function?
Q38: What is hoisting?
Q39: What is `this` keyword used for?
Q40: Which operator is used to spread array elements?
Q41: Which method converts a value to a string?
Q42: How do you check the type of a variable?
Q43: Which function merges arrays?
Q44: What will `Array.isArray([])` return?
Q45: What does `JSON.stringify()` do?
Q46: Which method is used to find an element in an array?
Q47: How can you write a function in JavaScript?
Q48: Which loop is best for arrays?
Q49: Which method is used to add an element at the end of an array in JavaScript?
Q50: What will be the result of `[] + []` in JavaScript?