JS FINALLY STATEMENT EXAMPLE
Run
<html>
    <head>
        <title>
            Using Finally block
        </title>
        <script type="text/javascript">
            try
            {
                // this will cause exception
                document.write(n);
            }
            catch(err)
            {
                // catch exception and handle it
                document.write(err.message);
            }
            finally
            {
                // the finally block
                document.write("<br/> I am FINALLY!");
            }
        </script>
    </head>
    <body>
        <!-- HTML body -->
    </body>
</html>