Question 1: Boolean Conversion Rule
Which of the following values converts to false when used in Boolean conversion?
Question 2: Logical OR with Truthy Values
What is the result of 0 || "Hello" in JavaScript?
Question 3: Do-While Loop Execution
What is the output?
Question 4: Removing First Element
What is the result of:
Question 5: Function Expression Example
Which of the following is a valid function expression?
Question 6: Object.values()
What will the following code output?
Question 7: Function this in Non-Strict Mode
In non-strict mode, what does this refer to inside a standalone function?
Question 8: Appending Elements
How do you add a newly created element p to the body?
Question 9: Arrow Functions
Which statement is true about arrow functions?
Question 10: Async Function Return
What does an async function always return?
Question 11: Type of Symbol
What is the type of Symbol("id")?
Question 12: Assignment with Addition
If let a = 5; a += 3; then what is the value of a?
Question 13: For...of Loop
What is the output?
Question 14: Adding First Element
What is the result of:
Question 15: Scope of Variables
Which variable has function scope in JavaScript?
Question 16: Checking Property Existence
Which operator checks if an object has a given property?
Question 17: this with call()
What does the following print?
Question 18: Changing Attributes
How can you change the src attribute of an image with ID pic?
Question 19: Destructuring Assignment
What is the value of x after this code?
Question 20: Await Keyword
What does the await keyword do?