Which of the following is a valid way to handle errors in an asynchronous function?

try- catch block

if-else statement

switch-case statement

while loop

Verified Answer
Correct Option - a

To get all Infosys Certified JavaScript Developer Exam questions Join Telegram Group https://grateful.prepflix.in/infy-lex-pdfs

Telegram