javascript-playgrounds icon indicating copy to clipboard operation
javascript-playgrounds copied to clipboard

NaN printed as null

Open zyasir opened this issue 4 years ago • 0 comments

https://unpkg.com/[email protected]/public/index.html#data=%7B%22code%22%3A%22const%20supply%20%3D%20%7B%7D%5Cnconst%20val%20%3D%20parseInt(undefined)%5Cnconsole.log(val)%22%7D

parseFloat(undefined) is NaN parseInt(undefined) is NaN

logging is showing null

zyasir avatar Oct 28 '20 01:10 zyasir