Ask coding questions

← Back to all posts
HELP JS Introduction to Control Flow
dotterc98 (1)

I am on lesson 3 in Lambda's introduction to javascript class and its the Introduction to control flow. I am completely lost on this exercise they want me to do. Nothing in the videos or lessons explains it. Please help me. This is the the exercise;
function exerciseFour(value){
let greaterThanFive = false;
// In this exercise, you will be given a variable, it will be called: value
// You will also be given a variable named: greaterThanFive
// Using an 'if' statement check to see if the value is greater than 5. If it is, re-assign greaterThanFive the boolean true.

Commentshotnewtop
mat1 (2660)

It's asking you to: "Use an if statement to check to see if the value is greater than 5. If it is, re-assign greaterThanFive to the boolean true." (slightly rephrased to be better English)

dotterc98 (1)

@mat1 Lol thank you I figured it out! 😊😊