2 ms·
Js doesn't really care about types, and doesn't seem to convert a string "true" into a boolean true: > temp0.innerHTML = true // no error > "true" == t
by ulucs 6y ago
Js doesn't really care about types, and doesn't seem to convert a string "true" into a boolean true:
> temp0.innerHTML = true // no error
> "true" == true
false
> true == "true"
false