SyntaxFix
Write A Post
Hire A Developer
Questions
Variables in Javascript don't have a type. Non-zero, non-null, non-empty and true are "true". Zero, null, undefined, empty string and false are "false".
true
false
There's a Boolean type though, as are literals true and false.