James Crowley

@JamesCrowley (0) • Lambda School
Had a question about this assignment
posted to Ask by JamesCrowley

I'm not sure if it is some formatting issue or what, but it won't mark it as correct even if i delete the return statement that they have put in there by default.

Had a question about this assignment
posted to Ask by JamesCrowley

@TheDrone7 @ I realize that the call statement is inside of the function itself, which doesn't work, however I have tried it outside and I can't seem to get it to work right. I'm not sure if this works, but here is a link to the oringinal repl.it

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

Had a question about this assignment
posted to Ask by JamesCrowley

@TheDrone7 I thought so, but I still can't seem to get it to work based on the syntax they're asking me to use in the assignment. Here is what I'm doing..

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;
  }
  exerciseFour(6);
  // Please write your answer in the line above.
return greaterThanFive;
}
Had a question about this assignment
posted to Ask by JamesCrowley

@TheDrone7 Thanks, I tried to do that initially, but I couldn't figure out where to call the function exactly in the code...
would it be after the second to last semicolon?