5.1.1. Boolean Values¶
/*The values true and false are not strings. If you use quotes to
surround booleans ("true" and "false"), those values become strings.*/
console.log(typeof true);
console.log(typeof "true");
//boolean
//string
5.1.1. Boolean Values¶
/*The values true and false are not strings. If you use quotes to
surround booleans ("true" and "false"), those values become strings.*/
console.log(typeof true);
console.log(typeof "true");
//boolean
//string
5.1.1. Boolean Values¶
/*There are only two boolean values---true and false. JavaScript is
case-sensitive, so True and False are not valid boolean values.*/
console.log(true);
console.log(typeof true);
console.log(typeof false);
//true
//boolean
//boolean
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us