Before studying about Javascript we have to understand how many types of scripting.
There are two types of scripting
- First one is client side scripting
- 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
- Javascript
- 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 :
- onclick
- dubleclick
- rightclick
- mouseover
- mouseout
- mousedrag
- key press
- keyup
- resize
- scroll
- load
- 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
- Jquery
- Angular Js
- React Js
- Vue Js
- Node Js
- Electron Js
How to emplement JavaScript in our HTML Page
Their are two ways to empliment Javascript on HTML Page
- inpage javascript
- extrnal Javascript
Basic code of Java Script :
document.write(“Helo Eyeshiv”)