Performing the operation: let x = 100 / 0;
will result in
- an
Infinity
value being stored in the variablex
. - the value
NaN
being stored in the variablex
. - the value
0
being stored in the variablex
. - the value
0
being stored in the variablex.
Answers Explanation & Hints:
In JavaScript, dividing a non-zero number by zero results in a special value called Infinity. Therefore, when performing the operation It’s important to note that dividing zero by zero ( |