If I declare a JavaScript boolean variable like this:
var IsLoggedIn;
And then initialize it with either true or 1
true
1
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".
false
There's a Boolean type though, as are literals true and false.