JAVASCRIPT INTRO

  • Javascript was made by Brendan Eich in 1995.
  • Javascript old name is livescript. at this time latest name is javascript.
  • 98.0% website using javascript.
  • The first original JavaScript main revision is invented in ES5 (2009).and second main revision ES6(2015).and every year additions (2016,2017,2018,2019,2020).

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style type="text/css">
            #box{
                width: 300px;
                height: 150px;
                background-color: aqua;
                color: black;
            }
        </style>
    </head>
    <body>
        <div id="box">my name is sachin</div>
        <button onclick="message()">click me</button>
        <script type="text/javascript">
            function message(){
                alert('welcome to my website and you are the boss');
            }
        </script>
    </body>
    </html>