re: There's no "else if" in JS VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

You could use something like promises.

someRequest(URL)
.then(result => console.log(result))
.catch(err => console.log(err));

Ooh. That's right. Forgot promises could do thatπŸ˜…. Thanks 😊

code of conduct - report abuse