Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

JavaScript/Reserved words/catch

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

JavaScript case char Reserved words 0 The catch keyword The catch keyword is used as part of the try statement. Examples The code try { log(-12.05); alert("Executed comment successfully."); } catch(err) { document.getElementById("demo").innerHTML = err.message; } </script> (Will add to the HTML element called "demo" the error message.) See also finally throw try JavaScript case char Reserved words 0