Java Script Introduction

Before studying about Javascript we have to understand how many types of scripting.

There are two types of  scripting

  1. First one is client side scripting
  2. Second is server side scripting

What is  client side script?

Lets study about client side script Client side script is provided by server to system
When user call script server provide script to system and Script on our browser 

Example: 

For example suppose we have a HTML Page and there is Javascript file is attached with that page.

If  user will open that HTML Page on browser server will load that Javascript linked with that page.

There are two types of client site script

  1. Javascript
  2. Visual Basic Script

Among to Script Javascript is one of the most popular script with having greatest market share.

What is  Client side script?

Server site script is just apposite of client site script it does not load on browser. It will run server only.

it gives us result based on our query in HTML Format.

There are meny types of server site script PHP, .net, Python are most popular  language among of them.

 

Javascript is an event based programming script

What is event?

There are many types of event given below :

  1. onclick
  2. dubleclick
  3. rightclick
  4. mouseover
  5. mouseout
  6. mousedrag
  7. key press
  8. keyup
  9. resize
  10. scroll
  11. load
  12. unload and many more

Javascript is an event based programming script we give command to javascript through various above events.

Use of Java script

Java Script us in Mobile Application

Web development

Desktop Application

What we can learn after Javascript

  1. Jquery
  2. Angular Js
  3. React Js
  4. Vue Js
  5. Node Js
  6. Electron Js

 

How to emplement JavaScript in our HTML Page

Their are two ways to empliment Javascript on HTML Page

  1. inpage javascript
  2. extrnal Javascript

Basic code of Java Script :

document.write(“Helo Eyeshiv”)