I am having an issue solving this challenge
Stated Goal
Modify the function abTest
so that if a
or b
are less than 0
the function will immediately exit with a value of undefined
Objectives
abTest(2,2)
should return a number
abTest(2,2)
should return 8
abTest(-2,2)
should return undefined
abTest(2,-2)
should return undefined
abTest(2,8)
should return 18
abTest(3,3)
should return 12
AE448
3
Please click this link for a spoiler and advice on this:
ilenia
4
What’s your code? Without that we can’t know what the issue is