Skip to content

[beta] SyntaxError shows wrong error message #12733

@kprenesti

Description

@kprenesti

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);

    ```
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions