0

Why this return true

why if(+"15"===15) return true in javascript ??

9th Feb 2018, 9:13 PM
Puneet Kumar
Puneet Kumar - avatar
1 Antwort
+ 17
Because + converts your string into an integer, so your values are identical and true is returned.
9th Feb 2018, 9:36 PM
NezhnyjVampir