top of page

Booleans and Conditional Statements

  • Writer: Leigh Armstrong
    Leigh Armstrong
  • Aug 3, 2018
  • 1 min read

I learnt that Booleans (True or False) values can be used to display various console commands and that they can have 'Operators' attached to them to gather information about variables. For instance the '>=' is an 'Operator':

var boolean = 3 >= 0;

console. log(boolean);

This would display a true value.


Next was to learn about conditional statements. There are different types them such as 'if', 'else', 'else if'. But also logical operators such as 'switch' and 'break' which can be simpler than using conditional statements.



コメント


©2018 by Leigh Armstrong. Proudly created with Wix.com

bottom of page