1
JS Assignment 3
DdGen (0)

Having trouble on Exercise 4 & 5

https://repl.it/student/submissions/7232739

You are viewing a single comment. View All
1
DdGen (0)

@vedprad1

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 greaterThanFive;
}

function exerciseFive(name){
let isSondra = false;
// In this exercise, you will be given a variable, it will be called: name
// You will also be given a variable named: isSondra
// Using an 'if' statement check to see if the name is equal to the string 'Sondra'. If it is, re-assign isSondra the boolean true.
if(name === 'Sondra'){}
else;{}

// Please write your answer in the line above.
return isSondra;
}