JavaScript is client side programming language invented by Brendan Eich in 1995, and became an ECMA standard in 1997.
ECMA-262 is the official name. ECMAScript 6 (released in June 2015) is the latest official version of JavaScript.
☛
JavaScript is a lightweight, interpreted programming language.
It is most commonly used as part of Web browsers, whose implementations allow client-side scripts to interact
with the user, control the browser, communicate asynchronously, and alter the document content that is displayed.
☛
JavaScript resides inside HTML documents, and can provide levels of
interactivity to web pages that are not achievable with simple HTML.
☛
JavaScript developed by netscape at initial stage it was known as LiveScript,
later netscape changed it's name to JavaScript.
☛
JavaScripts are basically operate or control by browser/client site & have not any
server side relation.
Benifits of JavaScript :-
☛
JavaScript is a lightweight, Load faster, Solve lot of problems on browser side so less load on servers, Instant output on any activity,
Great user interface etc.
Requirements :-
☛
Basic knowledge of HTML,
CSS,
before start study basics of these subjects first.
☛
Simple-text editor, such as Notepad, Editplus, Notepad++ is popular editor among web developers.
Download here
☛
You can also use our online editor given with each example or Click here
Basic JavaScript rules :-
☛
Works with HTML, PHP, ASP etc.
☛
JavaScript code always works inside <script> ... </script> elements
inside <head> ... </head> elements, outside will also work.
but with two important attributes Language and Type. You can also use JavaScript code externaly
using Notepad++, on the External
JS Sheet with .js extention say example.js, which is linked to the web page using link tag as
<head>
<script src="example.js"></script>
</head>
In example.js file all JavaScript codes are written without <script> ... </script> elements.
External JavaScript file also separates HTML and JavaScript code, speed up page loading, easy to edit etc.
☛
Statements are terminated and seprated by semicolons (;)
☛
In JavaScript is all reserved keywords and variable names are case-sensitive.