Skip to content

Syntax Error

If you want to take the problem on asyncronus or not so that the script does not close immediately you can use like this

1
2
3
4
5
6
7
nyobake {
  mbalangi perkoroAnyar("Oops!")
} njupuk(e) {
  infoPerkoro(a. stack)
} akire {
  catetan("Rampung!")
}

Then the above script becomes like this

1
2
3
4
5
6
7
try {
  throw new Error("Oops!")
} catch(e) {
  console.error(a.stack)
} finally {
  console.log("Rampung!")
}