Tell us what’s happening:
the semi colon at the end of the code is an unexpected token?
Your code so far
function checkSign(num) {
return (num > 0) ? "positive" : (num = 0) ? "zero" : (num < 0) ? "negative" ;
}
checkSign(10);
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.106
.