Javascript Module 1
Javascript Module 1
Javascript
Brief about Javascript :
JavaScript is a high-level, interpreted programming language used to make web pages interactive and
dynamic. It was created by Brendan Eich in just 10 days in September 1995 while he was working at
Netscape Communications. Originally, it was named LiveScript, but was later renamed JavaScript.
JavaScript is primarily used for adding interactivity to websites, such as creating animations, validating
forms, dynamically updating content, and much more. It is a core technology of the World Wide Web
alongside HTML and CSS.
JavaScript is a versatile language because it can be used both on the client-side (in the user's web
browser) and server-side (with platforms like Node.js). It has evolved over the years with new features
and functionalities being added regularly.
History of Javascript:
JavaScript, despite its name, has no relation to Java other than having a few similar syntax features.
Here is a more detailed history of JavaScript:
1. Birth of JavaScript (1995): In 1995, Brendan Eich created JavaScript in just 10 days while working at
Netscape Communications. Originally named LiveScript, it was later renamed JavaScript to ride the
popularity of Java at that time.
2. First Appearance: JavaScript made its debut in the Navigator 2.0 browser.
3. Standardization: In November 1996, JavaScript was submitted to ECMA International to carve out a
standard specification, resulting in ECMAScript, the official specification of JavaScript.
4. JavaScript in Major Browsers: Over time, JavaScript became supported by all major web browsers,
making it a key component of web development.
5. AJAX and Web 2.0: With the advent of Web 2.0, JavaScript usage soared due to its ability to make
asynchronous requests, known as AJAX, which allowed for more dynamic and interactive web
applications.
6. Growth and Transformation: JavaScript continued to evolve with new versions bringing modern
features like ES6 (ECMAScript 2015) and beyond, making it a powerful language for both front-end and
back-end development.
7. Node.js: In 2009, Ryan Dahl introduced Node.js, allowing JavaScript to be used for server-side
programming, further expanding its capabilities beyond just client-side scripting.
Address : ByteSplash Training and Placement Center, 4th Floor, No 92/9, PR Layout, Marathahalli, Bengaluru, Karnataka, 560037
Mobile : +91 8660803099 / +91 6301062858 , Email : enquries@bytesplash.in
Software Training and Placement Center
8. Frameworks and Libraries: With the rise in web development complexity, various frameworks and
libraries were developed to streamline JavaScript coding. Some popular ones include AngularJS, React,
and Vue.js for front-end development, and Express.js for back-end development.
9. Modern JavaScript (ES6+): The ECMAScript 6 (ES6) update, released in 2015, introduced significant
enhancements like arrow functions, classes, template literals, and more, making JavaScript more
expressive and developer-friendly.
10. Recent Developments: JavaScript continues to evolve with regular updates to the ECMAScript
specification. ES2021, for example, introduced features like String.prototype.replaceAll() and logical
assignment operators, further enhancing the language.
11. Wider Adoption: JavaScript's versatility and ubiquity have led to its adoption beyond web
development. It is used in mobile app development (React Native, NativeScript), desktop app
development (Electron), and even in emerging technologies like Internet of Things (IoT).
12. Community and Resources: JavaScript has a vast and active developer community, providing
abundant resources, tutorials, and support. Online platforms like MDN Web Docs, Stack Overflow, and
GitHub serve as valuable repositories for JavaScript-related information and code libraries.
Step 1: Setting Up
Ensure you have a text editor like Visual Studio Code or Sublime Text to write your code.
Address : ByteSplash Training and Placement Center, 4th Floor, No 92/9, PR Layout, Marathahalli, Bengaluru, Karnataka, 560037
Mobile : +91 8660803099 / +91 6301062858 , Email : enquries@bytesplash.in
Software Training and Placement Center
<!DOCTYPE html>
<html>
<head>
<title>My First JavaScript Program</title>
</head>
<body>
<h1>Hello, World!</h1>
<script>
// JavaScript code starts here
alert('Hello, World!');
console.log("hello world")
</script>
</body>
</html>
You can also do Javascript code execution in console of the browser , open right click on
browser and open inspect tab and navigate to console and execute like below :
Address : ByteSplash Training and Placement Center, 4th Floor, No 92/9, PR Layout, Marathahalli, Bengaluru, Karnataka, 560037
Mobile : +91 8660803099 / +91 6301062858 , Email : enquries@bytesplash.in