Javascript, Introduction, History, Installation, First Code

JavaScript 

JavaScript is a language of web; it is used to make webpages responsive. 

JavaScript was created by Brendan Eich. He, started his journey from Netscape navigator 

Earlier Java was booming and getting used in web programming, Java was first language to implement a concept where a lightweight application called applet can be embedded in Brower and works seamlessness to create a server-side interface. Within the page we can perform calculation, perform user input and perform all the function of web page. 

Java was complex language and Netscape thought to create a simple language which works seamlessly with backend and Front-end system. When Mozilla inherited Netscape base code in 1998, it included this Spider Monkey engine which was created in C language. Earlier it was named as mocha, it was then changed in JavaScript. 

Once JavaScript was booming, Microsoft wanted to improve internet explorer; JavaScript was reverse Engineered and created a language called as Jscript and embedded Jscript in browser. So, there were different interpreter in Netscape and Internet explorer, which resulted compatibility issues in between. So, a standard was introduced to ease development of webpages, ECMA (European Computer Manufacture Association) standard was introduced. As JavaScript was trademark of sun-microsystem, in actual it was named as ECMA script (officially). 

JavaScript runs in V8 Engine in Google, Spider Monkey (Netscape), safari (JavaScript Core - Nitro or squirrel fish). Since all the Browsers use ECMA script, the standard remains the same for development and maintenance. 

Till 2009 JavaScript was used a client-side programming language. In 2009, Rian Dale created node.js which can now run independently in server side without browser. It is runtime environment which can be installed in server side as well. Hence, Java script now can be used in server side as well. 

Various tech-stacs used such as 

MERN (MongoDB, Express.js, React, Node.js) 

MEVN (MongoDB, Express.js, Vue.js, Node.js)

MEAN (MongoDB, Express.js, Angular.js, Node.js)

etc. 

In all stacks, in backend JavaScript is getting used and these are most popular libraries used in web development. 

JavaScript can be embedded using external file or inline using script tag.

<body>
    <h1>JavaScript</h1>
    <script src="Sample.js"></script>
    <script>
        document.writeln('This is additional Inline code')
        document.writeln('Written to demostrate inline Javascript')

    </script>
</body>

JavaScript can be run without browser using node.js.







Comments