Javascript For Beginners

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

JAVASCRIPT

What is javascript ?

JavaScript is a widely used programming language primarily used for


web development. It was created by Brendan Eich while working at
Netscape and was first released in 1995.
JavaScript is a versatile language that can be used on web
development, native development, AI, etc.
Client Side JAVASCRIPT
In its early days, JavaScript was primarily used for client-side scripting
(which means it could only run in the browser). It allowed web
developers to manipulate the HTML elements on web pages, providing
dynamic interactions with users.
With JavaScript, developers could create alerts, prompts, and simple
scripts that enhanced the user experience. JavaScript was commonly
used for form validation, image rollovers, and other client-side tasks.
Browser War and Standardization
During the late 1990s and early 2000s, various web browsers emerged,
each with its own implementation of JavaScript. This led to
inconsistencies and incompatibilities in the way JavaScript code
behaved across different browsers. To address these issues,
standardization efforts began, resulting in the ECMAScript
specification. ECMAScript defines the scripting language specification
that JavaScript follows, ensuring a common standard for all
implementations.
Extending with AJAX

Around the mid-2000s, JavaScript's capabilities expanded further with


the introduction of AJAX (Asynchronous JavaScript and XML). AJAX
allowed web pages to fetch and display data from the server
asynchronously, without requiring a full page reload. This led to more
dynamic and interactive web applications.
Node.js Emerges (2009)
In 2009, Ryan Dahl introduced Node.js, an open-source, cross-platform
JavaScript runtime environment. Node.js is built on Google's V8
JavaScript engine, which is the same engine used by the Chrome
browser to execute JavaScript code. The introduction of Node.js
brought JavaScript to the server-side and other platform development,
enabling developers to use JavaScript beyond the limitations of web
browsers.
Node.js and JavaScript on the Server-Side
With Node.js, JavaScript transitioned from being solely a client-side
language to becoming a full-stack language capable of handling both
client-side and server-side development.
Node.js provided JavaScript developers with access to the server's file
system, networking capabilities, and the ability to create web servers
and handle HTTP requests.
Javascript Versions
The Original JavaScript ES1 ES2 ES3 (1997-1999)
The First Main Revision ES5 (2009)
The Second Revision ES6 (2015)
Yearly Additions (2016, 2017, 2018, 2019, 2020, 2021, 2022)
For more info visit:
https://www.geeksforgeeks.org/javascript-versions
Where to put Javascript
Javascript can be nested inside the <head> element or before the
closing tag of <body> element

You might also like