Q. Which one of the following is the correct output for the given JavaScript code?

Code:
    const obj ={prop:12};  
    Object.preventExtensions(obj);  
    console.log(Object.isExtensible(obj));  
  • (A) 12
  • (B) Error
  • (C) True
  • (D) False
πŸ’¬ Discuss
βœ… Correct Answer: (D) False

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
210
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
81%
Success Rate