What is Javascript ?

Sandipan Kr Bag Feb 07, 2024
What is Javascript ?

What is Javascript ?

JavaScript is an open-source scripting language used to make websites or web pages interactive. It allows the creation of dynamic websites. It is often referred to as a browser scripting language because it primarily works within browsers, interacting with various events. JavaScript is termed as an interpreted language because it doesn't require any compilation to run. Its emergence is influenced by C, C++, and Java, although it is not entirely similar to any of them. Despite sharing similarities with C, C++, and Java, JavaScript is a distinct language.

There are two types of websites: static and dynamic - 

Static: In this type of website, the data or content remains fixed, and no changes occur.

Dynamic: In this type of website, the data or content is always changing. For example, when I open the Facebook website, I may see it in one way, but if you open it, you may see it differently. JavaScript plays a crucial role in creating dynamic websites.

Creation:

It was created by a person named Brendon Eich. He was a programmer at Netscape Communications Corporation. It was created in 1995, initially named LiveScript. Later, the name was changed to JavaScript.

Java and JavaScript are the same language:

 This is a completely false notion. Java is a complex programming language that cannot be used to create web applications. On the other hand, JavaScript is a simple scripting programming language that allows the creation of web applications. Java requires a compiler to run, while JavaScript is written within HTML code and can easily run in a browser.


What can be done with JavaScript: 

By learning this scripting language, we can engage in Web Development, Desktop App Development, and Mobile App Development.

In the field of Web Development:

  1. Create clocks on web pages.
  2. Embed maps on web pages.
  3. Create pop-up windows.
  4. Develop audio and video players.
  5. Dynamically change HTML designs over time.
  6. Develop games.
  7. Validate forms.
  8. Work with dynamic drop-down menus.
  9. Display alert messages on web pages.
  10. And much more.


Libraries and Frameworks:

 To summarize JavaScript code, we can use various libraries or frameworks, which save time both in runtime and coding. For example, in CSS, we have the Bootstrap framework.

1.In Web Development:

  • jQuery
  • AngularJS
  • React JS
  • Vue.js
  • Node.js: It works in the server-side scripting language domain.


2.Desktop App Development:

  • Electron JS: It is created using both AngularJS and Node.js.

3.Mobile App Development:

  • AngularJS
  • React JS
  • Vue.js
  • React Native
  • Node.js

Note: "Js" stands for JavaScript.


How it works:

 JavaScript primarily operates through various events in the browser. For example:

  1. Click: When a user clicks on a button or object, JavaScript executes.
  2. Double click: When a user double clicks on a button or object.
  3. Right click: When a user right-clicks on the web page.
  4. Load: JavaScript executes when the web page loads in the browser.
  5. Unload: JavaScript executes when the user navigates away from the web page.
  6. Scroll: JavaScript executes when the web page is scrolled.
  7. Mouse hover: JavaScript executes when the mouse is placed over an image or object.
  8. Window resize: JavaScript executes when the browser window is resized.
  9. Keypress: JavaScript executes when a key is pressed on the keyboard by the user.


What is needed to learn:

  1. Good understanding of HTML and CSS.
  2. Knowledge of JavaScript concepts such as variables, data types, loops, functions, etc.

What is needed:

  1. A browser for testing code.
  2. Any text editor like Notepad or Notepad++.

Extension name:

.html      |       .css           |   .js   

 

Share this article

sndp bag

Sandipan Kr Bag

I'm a dedicated full-stack developer, entrepreneur, and the proud owner of ocec.org.in , hailing from the vibrant country of India. My passion lies in creating informative tutorials and sharing valuable tips that empower fellow artisans in their journey. With a deep-rooted love for technology, I've been an ardent enthusiast of PHP, Laravel, Angular, Vue, Node, JavaScript, jQuery, Codeigniter, and Bootstrap from their earliest days. My philosophy revolves around the values of hard work and unwavering consistency, driving me to continuously explore, create, and share my knowledge with the tech community.

* Hire Me

0 Comments

Load more Comments

Post a Comment

Hint: Please enter between 80 - 300 characters.
ocec.org.in

helllo