Posts by Lost Woods • 33 points
1 post
-
3
votes1
answer167
viewsQ: Use if() inside . catch() - error: Unexpected token if
Is the following I am new to javascript and I am not able to handle this error. I am trying to call a function and putting a .catch() to avoid error UnhandledPromiseRejectionWarning soon after it,…