0
What is the output
console.log(0/NaN)
8 Answers
+ 2
Oliver Pasaribu find the code playground on Sololearn and try it out there. That is a much quicker approach than waiting for an answer in the Q&A section.
+ 2
Oliver Pasaribu Sololearn calls the Code section (under Create) the code playground.
+ 2
Oliver Pasaribu okay, then I would like to provide a gentle correction. Sololearn's intent for the Q&A section is for asking questions about specific programming problems you are having, or about Sololearn. Other types of posts should be placed in your profile feed.
Be sure to read these guidelines if you haven't already:
https://www.sololearn.com/Discuss/3021159/?ref=app
+ 1
Is this a quiz question!?
The correct answer instead a clue. Remember that NaN represents an undefined or unrepresentable value in floating-point arithmetic, and any arithmetic operation with NaN, counted as an 'operand'...
+ 1
Oliver Pasaribu go to create section then tap '+' sign and choose your language!
0
Where is Playground on Sololearn reside? I can't find Playground tab here Brian.
0
Brian, do you mean test the code by myself and create my own code? I already do it.
0
I got the problem console.log(0/NaN) == NaN from sololearn. But we know that in math or calculus 0/integerNumber == 0. NaN / 0 == NaN in JS, 1/0 = NaN innJS, but generally it Will be generate an error: division by zero.