Javascript for Begginer | What is javascript and History of JS

What is Javascript

Javascript | What is JS?

Javascript is a client-side scripting language that allows us to implement complex things on a web page. or we can say Javascript is a scripting language that allows programmers to do complex problems in a simple and efficient manner. Using javascript framework programmers can implement a more attractive and efficient web-pages.
[Javascript is a high level platform-independent, object-oriented, client-side scripting language used to develop interactive web pages.]

History:

In September 1995, a Netscape programmer named Brandan Eich developed a new scripting language in just 10 days. It was originally named Mocha, but quickly became known as LiveScript and, later, JavaScript.

Javascript Frameworks:

JQuery
AngularJs
ReactJs
Meteor
NodeJs

Top websites using JS:


  1. Amazon
  2. Netflix
  3. YouTube
  4. Reddit
  5. eBay
  6. PayPal


Benefits of JS:


  • Speed
  • Easy to Learn
  • Interactive Websites
  • No Compilation needed
  • Platform-independent 


Two way to add JS to your HTML code:

1. Using script tag (<script>):

<html>
    <body>
        <h1>
            First JS Code
        </h1>
        <p>Learn more</p>
        <script>
            console.log("Hello");
        </script>
    </body>
</html>

2. Using external .JS FIle:

<html>
    <body>
        <h1>
            First JS Code
        </h1>
        <p>Learn more</p>
        <script src="Hello.js">
        </script>
    </body>0
</html>
Hello.js
console.log("Second way ");



Comments