Question on Lambda Pre course

I am a student of Lambda School. I recently got accepted . I am completing the precourse does anyone want to help me with question i have about math,properties and global objects.

You are viewing a single comment. View All
theangryepicbanana (866)

1Voice90 (0)

@theangryepicbanana
Thanks I figured it out. I wasnt placing the Math command ok same line as let it shud of all been on one line . Was stuck i will ask mu question on control flow next

1Voice90 (0)

@theangryepicbanana Dont provide the answer . i like solve it on my own. // In this exercise, you will be given a variable, it will be called: value
// On the next line create a variable called 'equalTo' and using a comparison operator, check to see if value is equal to 37.
// Assign the results of that to 'equalTo'
let equalTo = value ="37";

how is this not correct.

theangryepicbanana (866)

@1Voice90 well it's not correct because if you use the `=` operator for assignment, how would you also use it for equality?

1Voice90 (0)

@theangryepicbanana i used==== . = is for assignment. that was a type.

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(greaterThanFive >5)
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 ===)

return isSondra;
}

theangryepicbanana (866)

@1Voice90 Can you share a link to the repl with your code? That will make it a bit easier to help

theangryepicbanana (866)

@1Voice90 I cannot view that since it's in a classroom. the issue is really that you are trying to compare a boolean (true/false) value with a number, when you really need to be comparing `value` with 5

1Voice90 (0)

@theangryepicbanana thank you i appreciate it. I still havent wrote mu if expression not sure how to start. I am taking break and will start later .i have to figure out write the if expression with two variables. The questions are right there exercise 4 and 5