JAVASCRIPT GLOBAL VARIABLE
Run
<html>
    <head>
        <script>
            var num = 007; // global variable.
            
            function someFunc() {
                document.writeln(num);
            }
            // calling the function
            someFunc();
            /* 
                trying to access the 
                global variable
            */
            document.writeln("/");
            document.writeln(num);
        </script>
    </head>
    <body>
        <!-- HTML body -->
    </body>
</html>