Format and Beautify JavaScript

What is JavaScript?
JavaScript is one of the world's most popular programming languages. Although there are similarities, between Java and JavaScript the two are distinctly different languages. JavaScript was created by Netscape Communications in 1995.

Why use JavaScript?
There are an infinite number of reasons to use JavaScript, but mainly it is used as the glue for HTML. It makes things happen in what would otherwise be static HTML. JavaScript is most commonly used as a client side scripting language. This means that JavaScript code is written into an HTML page. When a user requests an HTML page with JavaScript in it, the script is sent to the browser and it's up to the browser to do something with it.

JavaScript Data Types
JavaScript is a loosely typed or a dynamic language. That means you don't have to declare the type of a variable ahead of time. The type will get determined automatically while the program is being processed. That also means that you can have the same variable as different types. (

The latest ECMAScript standard defines seven data types: