Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
To use booleans just write true or false. Like so: if (true) { console.log('first if'); } else if (false) { // this won't run console.log('second if'); } else { console.log('else'); }
27th Dec 2019, 12:24 AM
SoundInfinity
SoundInfinity - avatar
0
this type of data you can use when compared to what either. for example: a > 5 ?
27th Dec 2019, 5:04 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar