JAVASCRIPT ELSE IF EXAMPLE
Run
<html>
   <body>     
      <script>
            let  a = 8;
            if(a < 8)
            {
               document.write("Number is less than 8");
            }
            else if (a = 8)
            {
                document.write("Number is equal to 8");
            }
            else {
                document.write("Number is greater than 8");
            }
      </script>      
   </body>
</html>