DEV Community

loading...

Different number types

318097 profile image Mehul Lakhanpal Originally published at codedrops.tech ใƒป1 min read
console.log(typeof 0); // number
console.log(typeof new Number(0)); // object
Enter fullscreen mode Exit fullscreen mode

Thanks for reading ๐Ÿ’™

Follow @codedrops.tech for daily posts.

Instagram โ— Twitter โ— Facebook

Micro-Learning โ— Web Development โ— Javascript โ— MERN stack โ— Javascript

codedrops.tech

Discussion (0)

pic
Editor guide