What is JavaScript?

JavaScript or JS, is a client-side, scripting language used to make webpages dynamic and interactive. It runs inside a host environment and that environment is provided by web browsers like Google Chrome, Internet Explorer, etc. Unlike C, or C++ it can't run on its own, in fact the browser engines used to execute it are written in these languages.

JavaScript is an interpreted language. For those who are new to this term an interpreted language is one which gets executed line-by-line and not all at once, unlike a compiled language like Java. After making any changes to the code the file doesn't has to be re-compiled - instead it can be executed in the same way as before applying all the changes as it gets executed line-by-line.

JavaScript is an Object-Oriented Language, or more specifically a Prototype-Based Object Oriented Language. The core functionality of the language lies in objects that inherit data from one another in their prototype chains.

JavaScript an easy-to-learn high-level language that as complete beginners to the programming world can be an ideal choice for you to begin with. It doesn't has a steep learning curve unlike C or C++ and learning it can actually make learning other languages easier.

What can I do with it?

Nearly anything owing to the developments and improvements it has seen in the past years. However to be specific let's list a few possibilites of JavaScript in playing with HTML and CSS. JavaScript can be used to:

  • Write to an HTML page
  • Read content from HTML elements
  • Alter the content of HTML elements
  • Create new HTML elements
  • Remove HTML elements
  • Get styles of elements
  • Get dimensions of elements
  • Validate input data
  • Verify input data
  • Set events on HTML elements like showing a loading icon until the page loads.

Why JavaScript?

No installations required

The best thing about learning JavaScript is that you don't have to carry out even a single installation on your side to set up its execution environment. All you need is a web browser installed on your operating system, that's it.

Popular language

JavaScript is undoubtedly amongst some of the world's most popular languages. Why? Because it is the main scripting language available to be deployed on HTML pages. Every website uses it in some form or other at least - some may use it to just enable image galleries sliding automatically after an interval of time, while some may use it extensively to manage cookies, collect user information, validating input data, hashing strings, sending a request to a web server etc.

Huge support already available

An because it is popular it has a huge developer network. Name anything you are confused about in JavaScript and there is a 99% chance that it may have already been asked for and answered to. Developers are continuosly developing pages, writing scripts, looking for stuff and this JavaScript community is just growing.

Very easy to begin with

As we said even earlier, and as you will see later if you take this whole course, JavaScript is not a difficult-to-learn language. If it is difficult for you then C or C++ would be totally something out of this planet for you. It isn't difficult at all, at least in the beginning. In the later parts, it may be detailed, broad, long, boring, but isn't at all difficult! If you feel even right now it is difficult jump into this course and take it to the end and you will 100% agree with us.

Can open a new learning path

Learning JavaScript means that you can try exploring out JavaScript frameworks such as AngularJS, React, jQuery etc. These frameworks are built using JavaScript and knowing it could mean that you can better understand their functionality and logic. Learning JavaScript can also mean that you could go on to learn other languages like PHP or even Python because before that point you would've actually tasted the flavor of programming. Knowing one language really helps in learning others.

From now onwards..

Now that you know some solid details about JavaScript you can go on to explore it in the next chapters. We will take you in a perfect hierarchical manner walking through basics, detailing the basics, then intermediate, detaling it and finally to advanced stuff.

It will be an amazing journey of learning! So the question is - are you ready?