Use (Ternary) Operators

Tell us what’s happening:
Why does my code is not working?? I’m stuck here.Someone please help me to solve this.

its giving error in below conditions.

checkSign(-12) should return “negative”. Note that capitalization matters

checkSign(0) should return “zero”. Note that capitalization matters

Your code so far


function checkSign(num) {
 return ( num===0)? "zero":(num<0)?"negative":"positive";
}

checkSign(10);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-multiple-conditional-ternary-operators

When I copied your code into my browser it passed the tests just fine. Try pressing the Reset All Code button by the description and refreshing your page.