try { // code that we will 'try' to run } catch(error) { // code to run if there are any problems } finally { // run this code no matter what the previous outcomes }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter