# Introduction to JavaScript: Guide for beginners

# What is JavaScript?

**JavaScript (JS)** is the most popular programming language on the web. It is used mainly for enhancing the user's interaction with web pages. However, you need to understand how JavaScript works before you can use it to create magic. 

The language is a scripting or programming dialect that empowers you to perform complex activities on website pages. **Scripting languages** are coding languages used to automate processes that users would otherwise need to execute on their own. Without scripting, changes on web pages would require Users to either manually reload the page, or navigate a series of static menus to get to their wanted content.

 Wikipedia describes JavaScript as, "A [high-level programming language](https://en.wikipedia.org/wiki/High-level_programming_language). which has [dynamic typing](https://en.wikipedia.org/wiki/Dynamic_typing), [prototype-based](https://en.wikipedia.org/wiki/Prototype-based_programming) [object-orientation](https://en.wikipedia.org/wiki/Object-oriented_programming), and [first-class functions](https://en.wikipedia.org/wiki/First-class_function)." JavaScript also has [application programming interfaces]() (APIs) for working with text, dates, standard data structures, and the Document Object Model (DOM).

# The History of JavaScript

The programming language, JavaScript, was developed by Brendan Eich in 1995. It first appeared in "Netscape," a popular browser of that time. The language was initially called LiveScript and was later renamed JavaScript. 

Many Programmers often confuse JavaScript with Java - another programming language, but they are not similar in any way. Java is a complex programming language, unlike JavaScript which is only a scripting language. 

# What is JavaScript used for?


- **To add interactivity to websites:** JavaScript makes a website to become more than a static page of text.
- **For developing mobile applications:** JavaScript isn’t used for just websites; it’s also used to create applications.
- **For creating web browser-based games:** Have you ever played a game directly from your web browser? JavaScript was used to create that!
- **Back-end web development:** Although JavaScript is mostly used on the front end, it’s versatile and can be used on the back end as well.

# How does JavaScript work?

Being a scripting language, JavaScript cannot run on its own. But depends on the web browser to execute its code. Thus, the language is supported by all modern web browsers such as Chrome, Firefox, etc. It also runs on any operating system. 

For starters, you will need a code editor to run your codes and a browser of your choice to display your programs. Then, JavaScript is either added directly to a page’s code using <script> tags and giving them the type attribute text or included in a .js file.

```
<script type="text/javascript">
JavaScript code goes here
</script>
``` 

## These are some of the core features of JavaScript

1. **Validation of User’s Input:** JavaScript allows users to interact with clients by filling out forms through web pages. The validation of the User's input helps the client to validate the details entered by the user.
1. **Client Edge Technology:** The client edge technology in Java Script allows the client to have full control over the content which is being updated on servers.
1. **Else and IF Statement:** These statements are used to perform logical operations.
1. **Case Sensitive Format:** Codes written in JavaScript are Case Sensitive which explains the lack of difference in the output whether the codes are written in Upper or Lower Case Format.
1. **Light Weight and delicate:**  This language features lightweight and delicate codes. JavaScript codes don’t include variables. It uses just objects to perform the operations. 

Also, As you learn you’ll eventually hear the term **“vanilla Javascript.”** What does that mean?

**Vanilla JavaScript** is the JavaScript language “as it is” without using any tools like [frameworks and libraries](https://skillcrush.com/blog/javascript-frameworks-vs-libraries/) to make the coding process easier or more efficient. The tools are used in advanced JavaScript.


>*I hope this article has given you a good enough insight into what JavaScript is all about, as well as prepared and given you the motivation to learn this scripting language called JavaScript.*



