+ 3

print same result! solution please...

var yourAge = 18; var result; if ((yourAge>150 || yourAge <= 1 || yourAge <= 4 || yourAge <= 12 || yourAge <= 18 || yourAge >= 18)) { result = "baby"; result = "toddler "; result = "kid"; result = "teenager"; result = "an adult"; } else { result = "vampire"; } console.log ("you are", result);

19th Mar 2018, 3:22 PM
Golamrabbi Azad
Golamrabbi Azad - avatar
1 Answer
+ 8
It seems you need to sharpen your skill on conditionals. Try to complete this module and find out what your mistakes. 😉 https://www.sololearn.com/learn/JavaScript/1138/?ref=app
19th Mar 2018, 3:42 PM
Zephyr Koo
Zephyr Koo - avatar