-
-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
const myFunction = (x) => {
if(x>0){
return "ok"
} else {
throw "not ok"
}
if(x>0){
return "ok"
} else {
throw "not ok"
}
}The second if is unreachable so it will never be executed and it shouldn't be printed or be printed highlighting that it's unreachable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels