Started to learn Javascript
PermalinkWhat is Javascript?
Javascript is a client-side scripting language. It is used to set logic in the webpage for example to submit a form if a button is clicked and to apply any algorithm within the client( like if a client has given an array, and he/she needs the average of integers in the array)
It helps to take data from client to server.
It helps in Ajax requests (to change the page dynamically without reloading it)
It helps in DOM. DOM stands for Document Object Model and It consists of HTML, style and body: nav, div etc
PermalinkWhat can in-browser Javascript do?
Javascript can be not only used in the browser but also on the server
It can be used as a client as well as server-side language.
It has evolved greatly as a language and perform a wide variety of task.
It does not have low-level access to the CPU and protects it from attack
Add new HTML and change existing HTML from the DOM
React to events like a response from the server, action on keypress, mouse movement etc.
Ajax requests
Get and set cookies and use local storage to store that.
PermalinkWhat can't in-browser Javascript do?
It does not read/ write( to/from) from a computer Hard Disk.
Same Origin Policy. Prevent data access from other open tabs.
PermalinkWhat makes Javascript unique?
1. It has full support for HTML and CSS
2. It has a Simple API for simple things.
3. It supports major modern browsers. It is enabled by default
PermalinkJavascript Versions
Maintained by community
ECMA 1997
1st version 1997, 2nd in 1998, 3rd in 1999 ..ECMA 2015, 16, ..