Basic JavaScript - Use Multiple Conditional (Ternary) Operators

Tell us what’s happening:
Describe your issue in detail here. fiz toda a questão correta mas não passa nos testes

Your code so far

function checkSign(num) {
  return num > 0 ? "Positive"
    : num < 0 ? "Negative"
    : "Zero"
    

}

console.log(checkSign(10));

Your browser information:

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

Challenge: Basic JavaScript - Use Multiple Conditional (Ternary) Operators

Link to the challenge:

The directions say

The function should return positive, negative or zero.

You need lowercase letters

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.