// In this exercise, you will be given a variable, it will be called: value // On the next line create a variable called 'greaterThan' and using a comparison operator, check to see if value is greater than 5. // Assign the results of that to 'greaterThan'
Fairly new to coding and having a hard time comprehending this simple question... need help!
to create a variable use 'var' or 'let' and after that pick a name
var box; // i now have a variable called 'box'
I can assign mathematical expressions to 'box', including less than/greater than signs.
var box = 5 + 3 < 10
5 + 3 < 10 is a true statement, so 'box' will be 'true'
See if you can use the above information to create a variable called 'greaterThan'. Set 'greaterThan' equal to the expression value > 5 Another variable called 'value' is already here so you don't need var value just value by itself.
// In this exercise, you will be given a variable, it will be called: value
// On the next line create a variable called 'greaterThan' and using a comparison operator, check to see if value is greater than 5.
// Assign the results of that to 'greaterThan'
Fairly new to coding and having a hard time comprehending this simple question... need help!
to create a variable use 'var' or 'let' and after that pick a name
I can assign mathematical expressions to 'box', including less than/greater than signs.
5 + 3 < 10 is a true statement, so 'box' will be 'true'
See if you can use the above information to create a variable called 'greaterThan'.
Set 'greaterThan' equal to the expression
value > 5
Another variable called 'value' is already here so you don't need
var value
justvalue
by itself.