I am trying to solve an Assessment wanted for Math 3 skill test at MDN Javascript Maths lesson. However, the test asks me to write a test to prove or disprove the statement made. I am clueless here as how to write the test and then store the following test to the variables called weightComparison
, heightComparison
, and pwdMatch
, respectively.
I have an intuition that I may have to write a function and if test but I don’t know the syntax or language for that. Please help. Thanks.
Hello @gitura
you can solve it using if statement or ternary statement and set those variable to true or false based on that
so for example set weightComparisonto false if The elephant weights less than the mouse and true other wise based on the value under it
which is
let eleWeight = 1000;
let mouseWeight = 2;
same thing for the other things
hope that make it more clear and let me know if i have to explain it in better way and have a nice day 
Thank you for your reply. But I am sorry as I don’t understand how to use if statement or ternary statement. Could you please dumb down it for me?
WeightComparison is a variable but I don’t know what value to assign to it.
you very welcome and i am who sorry i forgat that you did not get to those leasons
you can simply solve it by using comparison operator
so for Weight use
let weightComparison = eleWeight < mouseWeight;
same way for others
hope that help and have a nice day 
4 Likes