# Javascript
Javascript is a programming language that is used to make web pages interactive. It is the most popular programming language in the world.
It was created by Brendan Eich in 1995. It was originally called Mocha, but was renamed to LiveScript. It was renamed to Javascript in 1996.
*Table of Contents*
* [How to install ?](#how-to-install-)
* [Example](#example)
* [Use it in HTML](#use-it-in-html)
* [Use it in a web browser console](#use-it-in-a-web-browser-console)
* [Import js file in HTML](#import-js-file-in-html)
* [Variables](#variables)
* [Data Types](#data-types)
* [String](#string)
* [Number](#number)
* [Boolean](#boolean)
* [Object](#object)
* [Array](#array)
* [Operators](#operators)
* [Conditions](#conditions)
* [Loops](#loops)
* [Functions](#functions)
## How to install ?
No installation is required. You can start coding in Javascript right away in a web page or in a web browser console.
## Example
This example shows how to display a message in the console.
```javascript
console.log("Hello World"); // Display a message in the console
```
## Use it in HTML
Javascript can be used directly in HTML with the `
Click the button to display a message.
``` > Hint > > Open [script_tag.js](html_usage/script_tag/script_tag.js) file with your web browser to test. ## Use it in a web browser console Open the web browser console and type the following: ```javascript console.log("Hello World"); ``` ## Import js file in HTML You can also use an external Javascript file in HTML. Create a file called `sayHello.js` and add the following code: ```javascript function sayHello() { console.log("Hello World"); } ``` Then, add the following code in your HTML file: ```html
Click the button to display a message.