-
-
Notifications
You must be signed in to change notification settings - Fork 44.1k
[beta] SyntaxError shows wrong error message #12733
Copy link
Copy link
Closed
Description
Challenge use-multiple-conditional-ternary-operators has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.95 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
The syntax was wrong, but gave a "Something went wrong" error message instead of a "Try again" error message. The wrong error would make me think there was a bug with the program rather than my code was wrong.
function checkSign(num) {
return (num > 0)?"positive":(num === 0):"zero":"negative";
}
checkSign(10);
```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels