Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is divide by 0 in Javascript? var a = 10;
Home
JavaScript
What is divide by 0 in Javascript? var a = 10;
0
votes
asked
Oct 9, 2022
in
JavaScript
by
Robin
What is divide by 0 in Javascript? var a = 10;
var b = 0;
document.write(a/b);
a) Nothing is printed
b) 0 is printed
c) Infinity is printed
d) Some Garbage Value
javascript
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Oct 9, 2022
by
Robin
Answer:- C
reason:-Infinity is printed divide by 0 in Javascript
...