JSFiddle - React, Tailwind, and code Playground

by michapixel

JavaScript

try {
    // catch errors produced by this:
 foo();
    var i = 0
} catch (e) {
 console.log(e);
} finally{
    // runs everytime
    console.log(i)
    if(i == 0)
         alert('#');
}