René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
try [JavaScript snippet] | ||
function main() { txt_out("1.") try { inexistant_func() } catch (e) { txt_out("caught: " + e + ", " + typeof(e)) } try { var x = null txt_out(x.length) } catch (e) { txt_out("caught: " + e + ", " + typeof(e)) } txt_out("2.") }
See also other Javascript snippets
|