menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

7 Crazy Th...
source image

Dev

3w

read

170

img
dot

Image Credit: Dev

7 Crazy Things In JavaScript: Love It or Hate It

  • "NaN" Is a Number? JavaScript classifies "NaN" as a number.
  • Adding Arrays? JavaScript joins them into a string instead of throwing an error.
  • True + True equals 2 in JavaScript because true is treated as 1.
  • undefined and null are not the same in JavaScript.

Read Full Article

like

10 Likes

For uninterrupted reading, download the app