JAVASCRIPT WHILE LOOP EXAMPLE
Run
<html>
    <head>
        <script>
            let a = 9;
            // while loop will be executed two times
            while (a <= 10)
            {
                document.write("while executed <br/>");
                a++;
            }
        </script> 
    </head>
    <body>    
        <!-- HTML body -->    
    </body>
</html>