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
Please always start a new topic when having trouble with a challenge and provide the actual code you have tried. The easiest way to do this is to click the Ask For Help button located on the challenge.
AE448
February 2, 2019, 4:55pm
#3
Please click this link for a spoiler and advice on this:
In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.
The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in…
ilenia
February 2, 2019, 5:05pm
#4
What’s your code? Without that we can’t know what the issue is