19. What is the output of the following code?
- A) true
- B) false
- C) undefined
- D) null
Answer: B) false
20. **What is the purpose of the
- A) To handle asynchronous operations
- B) To handle synchronous operations
- C) To handle event listeners
- D) To handle DOM manipulation
Answer: A) To handle asynchronous operationsns**
These questions cover a range of JavaScript topics, including data types, operators, methods, and more, which are commonly asked in interviews.
console.log(1 === true);
- A) true
- B) false
- C) undefined
- D) null
Answer: B) false
20. **What is the purpose of the
Promise object in JavaScript?**- A) To handle asynchronous operations
- B) To handle synchronous operations
- C) To handle event listeners
- D) To handle DOM manipulation
Answer: A) To handle asynchronous operationsns**
These questions cover a range of JavaScript topics, including data types, operators, methods, and more, which are commonly asked in interviews.