@JamesCrowley/

JavaScript Assignment 3 Lesson 4

Nodejs

Had a question about this if statement

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
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.
  if (value > 5){
    let greaterThanFive = true;
  }

  // Please write your answer in the line above.
  return exerciseFour(6);
}
node v10.16.0