Most important JavaScript interview Question.

Truthy values

“..”‘0’[]{}‘false’

Falsy values

0“”undefinednullNaNfalse
In javascript language double equal check only value but triple equal check value and type.
Double equal only check the value
Triple equal check the type and value
parseInt("30", 10) // 30
parseInt("55px", 10) // 50
parseInt(2.55, 10) // 2
parseFloat("30") // 30
parseFloat("55px") // 50
parseFloat(2.55) // 2.55

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store