What is the output | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

What is the output

console.log(0/NaN)

22nd Apr 2024, 3:54 AM
Oliver Pasaribu
8 Respuestas
+ 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.
22nd Apr 2024, 7:44 AM
Brian
Brian - avatar
+ 2
Oliver Pasaribu Sololearn calls the Code section (under Create) the code playground.
22nd Apr 2024, 8:23 AM
Brian
Brian - avatar
+ 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
22nd Apr 2024, 9:15 AM
Brian
Brian - avatar
+ 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'...
22nd Apr 2024, 4:17 AM
`нттp⁴⁰⁶
`нттp⁴⁰⁶ - avatar
+ 1
Oliver Pasaribu go to create section then tap '+' sign and choose your language!
22nd Apr 2024, 8:18 AM
`нттp⁴⁰⁶
`нттp⁴⁰⁶ - avatar
0
Where is Playground on Sololearn reside? I can't find Playground tab here Brian.
22nd Apr 2024, 8:04 AM
Oliver Pasaribu
0
Brian, do you mean test the code by myself and create my own code? I already do it.
22nd Apr 2024, 8:39 AM
Oliver Pasaribu
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.
22nd Apr 2024, 9:08 AM
Oliver Pasaribu