W3C Designer

what is javascript introduction

5/04/2021
Hacker

JavaScript is used to create client-side dynamic pages. JavaScript is an object-based scripting language which is light weighted and platform Independent.

JavaScript is not a compiled language, but This is a translated language. JavaScript Translator is responsible for translating JavaScript code for web browsers. JavaScript Translator is embedded in the Web browser.


what is javascript

What is JavaScript

JavaScript is a web programming language that gives motion and logics to the website Such As a popup window alert or Jumping effects, etc.

The short form of JavaScript is JS. JavaScript (J.S.) is a lightweight Scripting language that is used by many websites for scripting web pages or website's. JavaScript is an full-fledged and interpreted programming language that enables dynamic interactivity on websites on browser when applied to an HTML document.

The traditional website uses JavaScript to provide Multiple forms of interactivity and simplicity. However, JavaScript has no connectivity with the Java programming language. The name JavaScript was suggested and provided at a time when the Java programming language was gaining popularity in the market.

In addition to web browsers, databases Like Couch DB and MongoDB uses JavaScript as their scripting and query language.


Important Points of JavaScript

  • JavaScript is the most popular scripting language in the world's.
  • JavaScript is the language of Web programming.
  • JavaScript is easy to learn.

Why Study JavaScript?

Java Script is one of the three (3) languages all web developers must need to learn for standard web builing:

  1. HTML (Hyper Text Markup Language) is used to Specify the content of web site
  2. CSS (Cascading Style Sheets) is used to Define the layout of web pages
  3. JavaScript (J.S.) is used to Specify or program the behavior of web pages

Different Between Html, CSS and JavaScript

HTML is the structural language that create the structure of a website. Heading, paragraphs, images, text & More element's are the part of HTML that creates the basic structure of a website.

CSS is a styling language that gives styles of a website With the help of it's Property like front color, background color and border styling.

JavaScript is a web programming language that gives ability to perform motion and logics to the website such as a popup window alert.

What can JavaScript Do

There are few examples of what can JavaScript do:

  • JavaScript Can Change The HTML Content
  • JavaScript Can Change The HTML Attribute Values
  • JavaScript Can Change The HTML Styles (CSS)
  • JavaScript Can Hide The HTML Elements
  • JavaScript Can Show The HTML Elements

Features of JavaScript

There are following features of JavaScript:

  • All web browser's support JavaScript and they provide built-in execution environments.
  • JavaScript follows the syntax and structure of the Most Popular C programming language. hence, it is a structured web programming language.
  • JavaScript is an object-oriented programming language that uses prototypes Instead using classes for Heritage.
  • It is a light-weighted and interpreted language.
  • It is a case-sensitive language.
  • It provides good controlling Power to the users over the web browsers.

Advantages of JavaScript

  • Less server interaction - We can validate user input before sending the page to the server. This reduces server traffic, which means less load on our servers.
  • Immediate feedback to the visitors −They do not have to wait for the page to reload to see if they forgot to enter something.
  • Increased interactivity − We can Design interfaces that reacts when the user activates them via the keyboard or hovers over them with the mouse.
  • Richer interfaces − We can use JavaScript to include such objects as drag-and-drop sliders and components to give User's a rich interface to our website.

Application of JavaScript

JavaScript is used to create interactive websites. It is mainly used for:

  • Dynamic drop-down menus,
  • Displaying date and time,
  • Showing dialog boxes and pop-up windows (Such As an confirm dialog box, alert dialog box and prompt dialog box),
  • Displaying clocks etc.

History of JavaScript

Mosaic is the first popular web browser, which came into existence in 1993. Netscape was founded by Marc Andreessen In the year 1994 Mark Andreessen felt that the web needed to become more dynamic.

Hence, a 'glue language' was believed to be provide HTML to make web designing easy for designers & part-time programmers. Accordingly, the company recruited Brendan Eich intending to embed Scheme implement programming language to the browser in 1995.

But, The company merged with Sun Microsystems for adding Java into its Navigator before Brendan could start. so that it could compete with Microsoft over the web platforms and technologies.

Now, there were two languages: The scripting language and The Java. Farther, Netscape decided to give a similar name to the scripting language as Java's. This led to 'JavaScript'. Finally, Mark Andreessen write JavaScript's first code Named As 'Mocha' in May 1995.

Later, the marketing team changed its name to 'Live Script'. However, due to trademark reasons and some other reasons, the language was renamed to 'JavaScript' in December 1995. Since then, JavaScript came into existence.


Pre planned for learn JavaScript

Before learning JavaScript in The depth, you should have basic knowledge of HTML.



1 comment: