Como lidar com o erro js

// just sample try catch javascript
try {
  // doing some methods
}catch (e) {
  // showing message or other proses you want
  console.log(e.message)
}
Indonesia People