Boolean Variable in JavaScript
Level 273 keystrokes
Declares two boolean variables and outputs their values.
JavaScript code
// let declares a variable that can be reassigned// true is a boolean value meaning "yes" or "on"1let isActive = true;// false is a boolean value meaning "no" or "off"2let isAdmin = false;// console.log() prints several comma-separated arguments, joined by a space3console.log(isActive, isAdmin);Output
true false
Practice typing this code. Results are not recorded in the rankings.
Symbols in this code
The symbols you type in this JavaScript code and how often they appear.
;× 3=× 2,× 1.× 1(× 1)× 1