Assessment needed for test 3

https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Test_your_skills:_Math

I think the test is broken shouldn’t part 2 return true

Hello @Christian_Olowokere

i see you have function testNum2 which need 2 parameter but when you call it

heightComparison = testNum2();

you call it without parameter

also it will depend on the order you call this funtion with so call it with testnum2(ostrichHeight,duckHeight) will give the opposite result of
testnum2(duckHeight,ostrichHeight)

if there anything else i missed then please share the you full code it would be better

hope that help and have a nice day :slight_smile:

@Christian_Olowokere just to jump in here, your use of functions here is commendable for such an early point in the course, but there is a much simpler way to solve this.

You can just write the comparison as the value of the variable. As an example, the third text can be written like this:

let pwdMatch = pwd1 === pwd2

pwdMatch will now equate to true if pwd1 is identical to pwd2, or false otherwise.