Challenge for Conditions


Construct an if inside the checkNumber function statement that checks if the number myNumber is equal to 42. If it is, the function must print out using the word correct. If myNumber is not equal to 42, the function must print out the word incorrect.

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Contact Us
Sign in or email us at [email protected]