JS INTRODUCTION

Lavanya

JavaScript Tutorial

Our JavaScript tutorial is tailored for both beginners and professionals, providing the skills needed to create dynamic client-side web pages.

JavaScript is a lightweight, cross-platform scripting language that is object-based.

JavaScript is not a compiled language but a translated one. The JavaScript interpreter, embedded in the browser, is responsible for translating the JavaScript code for execution in the web browser.

What is JavaScript

JavaScript (JS) is a lightweight, object-oriented programming language widely used for scripting web pages. As an interpreted, fully-featured programming language, it enables dynamic interactivity on websites when integrated with HTML.

JavaScript has no connection to the Java programming language, despite the similarity in names. The name was chosen during a time when Java was gaining popularity in the market. Beyond web browsers, databases like CouchDB and MongoDB also use JavaScript as their scripting and query language.

Features of JavaScript :

1. All major web browsers support         JavaScript by providing built-in execution   environments.

2. JavaScript adopts the syntax and       structure  of the C programming language,   making it a structured programming   language.

3. JavaScript is a weakly typed language,     meaning certain types are implicitly   converted based on the operation being   performed.

4. JavaScript is an object-oriented   programming language that relies on   prototypes for inheritance instead of using   classes.

5. It is a language that distinguishes     between  uppercase and lowercase   characters.

6. It is a lightweight and interpreted     language.

7. JavaScript is supported on various     operating systems, including Windows and   macOS.

8. It gives users substantial control over     their  web browsers.

History of  JavaScript 

In 1993, the Mosaic browser debuted. By 1994, Marc Andreessen founded Netscape, aiming to enhance web dynamism. In 1995, Netscape hired Brendan Eich to add a scripting language to the browser, initially planning to use Scheme. However, after merging with Sun Microsystems to integrate Java, the company created a new scripting language. The language was first named 'Mocha,' then 'LiveScript,' and finally 'JavaScript' in December 1995, marking its official launch.

Application of  JavaScript:

JavaScript is used to create interactive websites and is primarily employed for:

  • Cient-side form validation,
  • interactive dropdown lists,
  • showing current date and time,
  • Displaying pop-up windows and dialog boxes, such as alert, confirm, and prompt dialogs,
  • Showing time displays.

Example 

<Script>

document.write("Welcome to my website!");

</Script>
Tags
Our website uses cookies to enhance your experience. Learn More
Accept !

GocourseAI

close
send