Https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-multiple-conditional-ternary-operators

Https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/use-multiple-conditional-ternary-operators
0

#1

Tell us what’s happening:

Your code so far


function checkSign(a) {
  return (a>0)?"Positive":(a<0)?"Negative":"zero";
}

checkSign(-12);

Your browser information:

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

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


#2

Look at the test cases. Your returned words should be in lower cases.

checkSign(10) should return “positive”. Note that capitalization matters
checkSign(-12) should return “negative”. Note that capitalization matters
checkSign(0) should return “zero”. Note that capitalization matters