JavaScript Overview

What is Javascript ?

JavaScript is a lightweight and cross-platform scripting language that implements object-oriented concepts. The JavaScript language is not compiled, but rather translated. JavaScript code is translated by the JavaScript Translator (included in the browser).

Many websites use JavaScript (js) as a light-weight object-oriented programming language for scripting. Netscape Navigator introduced it in 1995 as a tool for adding programs to webpages. JavaScript is a programming language that follows the syntax and structure of C. In this sense, it is a structured programming language.

What is javascript used for ?

JavaScript is used for creating dynamic pages on the client side. The JavaScript programming language runs in the browser. Static HTML web pages become interactive ones when updated dynamically, form data is validated, multimedia is controlled, images are animated, and more.

In JavaScript, certain types are implicitly cast, so it is a weakly typed language. There are several operating systems that support JavaScript, including Windows, MacOS, etc.

Who found javascript ?

The JavaScript programming language was developed by Brendan Eichwhile working at Netscape Communications Corporation. In May 1995, Eich developed JavaScript in just 10 days after being assigned the task of creating a scripting language for web browsers. After being initially called Mocha, the language was named LiveScript, then JavaScript. As a result with JavaScript, you can create dynamic and interactive web applications, and it is one of the most widely used programming languages in the world.

What can you do with javascript ?

JavaScript allows you to create web applications that are interactive and dynamic using a variety of programming languages.

JavaScript can be used for the following things:

  • Interactive web pages: JavaScript can be used to create window pop-ups, drop-down menus, and user input forms for web pages.
  • Web forms can be validated using JavaScript to ensure that users enter only the correct information, preventing malicious data from being entered.
  • A JavaScript application can alter the content of a web page by adding, removing, or changing elements dynamically.
  • JavaScript enables animations, visual effects, and transitions to be created on web pages.
  • Interact with web APIs: JavaScript allows you to display data retrieved from external sources on your website using web APIs.
  • History of javascript

    JavaScript was originally used to automate simple client-side tasks like form validation and animation. Over time, however, JavaScript's capabilities increased, and it gradually became used for more complex applications on the web.

    JavaScript applications were greatly improved by Google's V8 engine developed in 2005. By doing so, JavaScript was made capable of running more complex applications, such as single-page applications and collaboration tools in real-time. With new features and capabilities being added regularly, the language has evolved significantly since its creation.

    How to download javascript ?

    A web browser already contains JavaScript, so it does not need to be downloaded separately. Integrated development environments (IDEs) or text editors that allow you to write and save plain text files can be used to create and run JavaScript code. Notepad++, Sublime Text, Atom, and Visual Studio Code are all popular text editors for JavaScript development.

    The JavaScript programming language is client-side, meaning that it is executed by the user's computer and not by a server. It is important to consider this when creating web applications since users can disable JavaScript in their web browser settings.

    Advantges of javascript ?

  • Versatility - A variety of applications can be built with it, including web applications, desktop and mobile applications, games, and simulations.
  • Browser compatibility - Since JavaScript runs on all major browsers, it is an excellent choice for web applications
  • Easy to learn - With its simple syntax and easy learning curve, JavaScript is a very easy language to learn.
  • Interactivity - It can improve user engagement and provide a better user experience by allowing you to create dynamic and interactive web pages.
  • Large developer community - It is possible to learn, troubleshoot, and share knowledge online through a wide variety of resources.
  • Many Frameworks and libraries - The development of complex web applications can be greatly simplified by the use of JavaScript frameworks and libraries, like React, Angular, and Vue.js.
  • Performance - Web applications can be developed with high performance
  • Javascript Hello World

    Using alert

    <!DOCTYPE html>
    <html lang="en">
        <meta charset="UTF-8">
        <title>Hello World Example</title>
            alert('Hello World');

    Using document.write

    document.write('Hello World')

    Using console.log

    console.log('Hello World')