Q. Consider the following code snippet
console.log(p)
If p is not defined, what would be the result or type of error?

  • (A) Zero
  • (B) Null
  • (C) ReferenceError
  • (D) ValueNotFoundError
πŸ’¬ Discuss
βœ… Correct Answer: (C) ReferenceError
Explanation: In the above code snippet, p is not defined. Hence, it gives a ReferenceError.
Explanation by: Mr. Dubey
In the above code snippet, p is not defined. Hence, it gives a ReferenceError.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
161
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate