Q. What is divide by 0 in Javascript?

Code:
var a = 10;
var b = 0;
document.write(a/b);
  • (A) 0 is printed
  • (B) Infinity is printed
  • (C) Some Garbage Value
  • (D) Nothing is printed
πŸ’¬ Discuss
βœ… Correct Answer: (B) Infinity is printed

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
250
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
92%
Success Rate