1 Introduction
1 Introduction
JAVASCRIPT
What Is JavaScript?
JavaScript is a dynamically -typed, interpreted (on the fly compiled)
programming language with object-oriented capabilities that
allows us to build interactive web pages.
Dynamically Typed ?
We don’t have to mention the data type of the variable while
declaring it.
FireFox SpiderMonkey
Opera v 14+ V8
.
Relationship With Html And CSS
<p>Java is to JavaScript as Ham is to Hamster</p>. Dynamic Effects means changing the content or
behaviour of the page at run time.
For example , as the user moves his mouse over the text
shown , it’s color can be changed using Java Script.
CSS : Styling
p { color : red; }
JavaScript In Today’s World
Client Side
Earlier JavaScript was a client side language
and was limited only to browser Server Side
What makes JavaScript possible on
server side is Node Js
Desktop Apps
Using Eectron JS , now we can develop
desktop apps with JS too
Mobile Apps
JavaScript frameworks like React Native
and Ionic can be used to develop mobile
apps for Android as well as iOS
What JavaScript Can Do In Browser?
Following are the tasks for which JavaScript is mainly used:
Sample: https://dr5hn.github.io/countries-states-cities-database/
Form Validation
Image Roll Over
Image Swap
What Java Script(client side) Can’t Do ?
• JavaScript cannot access Database(without AJAX or FetchAPI)
Java was developed by Sun Microsystems JavaScript was created by Netscape and is a
scripting language which is placed inside
and is a full fledged, standalone, object
oriented language an HTML page and provides interactivity
to the page.
Java is both a compiled as well as JavaScript is mainly an interpreted language
interpreted language.
but with on the fly compilation
Many similar languages appeared , for ex: Microsoft published an exact copy of JavaScript
and named it as JScript
Version History Of JavaScript
1997
Netscape submitted JavaScript for standardization to an organization called ECMA
2015
ES6/ES2015 (ECMAScript 2015) was released : The biggest update to the language ever!
ECMA decided to change to annual release cycle in order to ship less features per update.
Then 2016, 2017, 2018, 2019, 2020, 2021 and 2022 were the years for release of :
ECMAScript 2016 / ECMAScript 2017 / ECMAScript 2018 / ECMAScript 2019 / ECMAScript 2020 / EC-
MAScript 2021 / ECMAScript 2022
Which Version To Use ?
ES5 ES6 to ES2022 ES2023 . . .
Courtesy : https://gigazine.net/gsc_news/en/20221117-github-top-programming-languages-2022/