Dd Genesis

@DdGen (4)
JS Assignment 3
posted to Ask by DdGen

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