ddsingh@infomatics.info +91 9760014754

Introduction Of Java Script

JavaScript was invented by Brendan Eich.

It’s was initially supported by Netscape Navigator in 1995 and was then adapted by ECMA (European Computer Manufacturers Association) since 1997.

A scripting language is a lightweight programming language.

JavaScript is programming code that can be inserted into HTML pages.

 JavaScript inserted into HTML pages, can be executed by all modern web browsers.

Why you should Learn JavaScript :-

Initially when JS was invented by Brendan Eich in 1995, it was supposed to function only as a scripting language on the client side for web development. 

However, JS has evolved and diversified a lot in many other domains like - Server side programming, Desktop application development, Mobile Application development, Machine Learning etc.

Here are few Examples of different Technologies & Frameworks where JavaScript is used - 

Node.JS:-
     Used in server side programming - complete framework for server side development.

React JS:-
                It’s a front-end library developed by Facebook. 
        Using React JS you can create web as well as mobile applications. 

React Native:-
           It’s a JavaScript framework for writing real, natively rendering mobile applications for iOS and Android.

AngularJS:-
        It’s a JavaScript MVC framework to develop a dynamic web application.Started by Google but now its open source.

Electron:-
           It’s a framework used to build cross platform desktop apps 
       with JavaScript, HTML, and CSS

React VR:-
        Again a flavor of ReactJS used to create Virtual Reality oriented applications. 

Tensorflow.JS :-
       Tensorflow is an open source Machine Learning framework for everyone. 
       A JavaScript library for training and deploying ML models in the browser and on Node.js

 Softwares Needed

The 2 softwares needed to start of with JavaScript are:-

1)Text Editor:- Visual Studio Code Text Editor which is highly recommended by many specially for Javascript, however you can use any other text editor like Notepad++,Edit Plus or Sublime text etc.

you can also download via following link

url :- https://code.visualstudio.com/

2)Browser:- Of course a browser is needed to load the HTML document and run the JavaScript so Google Chrome browser is the Best Choice. You can use any browser of your choice as most modern browsers have JavaScript enabled by default.

url:- https://www.google.com/chrome/

Note:-
    To Simplify the JS Development Install Visual Studio Code Text Editor For that Just download it from google by typing the Name of It.

VS code Theme & Live Server Plugin Setup:-
        We will setup up our Visual Studio Code text editor with some basic themes and more importantly we will setup a new plugin/extension known as Live Server 

How To Change Theme:-
 

    For That click on Setting Which is Located in Bottom Left
       And Select The Color Theme

Live Server Extension:-
     

 This extension creates a local server on the system and runs in the background to constantly check for changes that you perform on your HTML/JS/CSS files and immediately updates those changes in the browser output. 

This makes it easy to see the live changes happening and we dont have to save the files(provided auto save is on) and refresh the browser to view the changes.


How To Install Live Server Extension:-


     For That Click On The Extensions Icon Which is Located in Left Side.
     Then Serch Live Server and Click on The Install Link(Provided Internet is On)

 

Important Facts about JavaScript

JavaScript is an Interpreted language and it’s executed by the interpreter built in within the web browser on all platforms.

It is Object based (doesn’t support inheritance) and is case sensitive language.

Its syntax is very similar to “C” language.

It is very loosely typed i.e.it means once u put any value in the variable that time data type is decided of variable.

JavaScript language together with HTML DOM (Document Object Model) API is used to make the web page dynamic or interactive.

Also we can do client side validations of data before the form is submitted to server.

It is not Related with java language

JavaScripts can be put in the <body> and in the <head> section of an HTML page.

ex:-

Prg1,2,3.html

<html>
<head>
		<title>First Java Script Demo</title>
		<script type="text/javascript">
					document.write("Hello world!!!!<br/>");
		</script>
</head>
<body>
        This is First Demo of Java Script
</body>
</html>
<html>
<head>
		<script language="javascript">
				document.write("hello world");
		</script>
</head>
</html>
<html>
<head>
<script>
			document.write("hello world");
</script>
</head>
</html>

 


Next