samedi 7 octobre 2017

when does one use the try catch block in JavaScript

i dont know when do people need the try catch block in JavaScript. can you give me examples of when they would be used?

try {

// something

} catch {

   //something

}




Aucun commentaire:

Enregistrer un commentaire