Version 1.17.24

T1A07-Decision-by-Abhay.html

Good reference to Decisions if ... else statments Javascript innerHTML value by Abhay
Note: ! = Not, && = AND, || = OR

Example input output code

let myHour = 20
if (myHour < 18) {
  let myGreeting = 'Good day';
}

Example working code



...


Click the light bulb to turn on/off the light.




How old are you?



...



What's your favourite number?





...

...