Blog

3 things you should know about JavaScript basics

javascript

If you are learning how to code or you have been researching what things you should learn to get a job as a full-time developer; then you’ve most likely realized that JavaScript is a big deal. Some people love this, while others are not all that pleased, but it’s the case.

Before keep talking about JavaScript, why you should learn it, and how to learn JavaScript more efficiently, let’s quickly point out that JavaScript doesn’t have much to do with Java; it was named that way for historical reasons, and you’ll often see it been called ECMAScript or ES, too.

Back to JavaScript programming, as the web became more important, websites started required much more interactivity, and JavaScript began to grow, up to the point that right now we can use it on both the front end and the back end, being a Full Stack JavaScript developer.

JavaScript is great and rewarding as a first programming language, and is very useful for any developer. Let’s explore three things that will make learning JavaScript easier and help us to keep a positive mindset towards learning it.

  1. Understanding HTML and CSS will make things easier

Technically this doesn’t have anything to do with JavaScript, but if you are doing something related with web development, which is the case with JavaScript; then knowing HTML and CSS will make everything easier, and you’ll get JavaScript and web development concepts more logically.

The reason for this, is that any website or web application is first an HTML document, and JavaScript will hugely help us to interact with the different elements here, and this will be so much better if you understand HTML (hint: It’s not hard to understand!).

While CSS might be a bit intimidating, especially for those more interested on the logic side of web development, it’s just lots of fun, and you don’t have to be a genius designer, just understand how CSS changes the look of our website, and how do selectors and rules work.

A fundamental but solid understanding of HTML and CSS will make your learning of JavaScript easier and better.

  1. Manipulating the DOM is fun

The DOM and the possibility of manipulating it is what really makes JavaScript so special. What is the DOM, anyway? The DOM (Document Object Model) is a hierarchy or tree formed by all of the HTML elements in your site, with some elements containing other elements inside.

We use JavaScript to interact with the DOM, allowing us to traverse it, getting each element of the website, and being able to manipulate it and do all sort of things with it (like adding a pink background). This is why understanding HTML and CSS is so useful in your journey to learn JavaScript.

Plus, manipulating the DOM is just a lot of fun, and you can really do all sort of things with this knowledge. Thanks to this, we can use events, such as a mouse click, a screen touch, or a page scroll; to add a lot of functionality and interactivity to websites and web applications.

  1. Frameworks and libraries are JavaScript

Whether you have already learnt the basics or even more of JavaScript programming, or you are still deciding your best way to learn it; chances are you’ve already encountered these things called frameworks and libraries, such as React, Vue and Angular.

When looking for job postings online or looking for advice on how to land a job as a JavaScript, Front-End or web developer, chances are you’ll see one of these frameworks somewhere, mostly React or Vue these days.

They are amazing, and can really take JavaScript to the next level; but, let’s remember something: They are all built with JavaScript.

Why does this matter? It doesn’t mean that we have to go ahead and make our own framework, these exist for a reason and are great. However, in order to fully appreciate what they do for us, it is a good idea to actually understand plain JavaScript first.

After you know how to manipulate the DOM with vanilla JavaScript, and you can do some simple but nice things with JS (or ES), then start looking for a framework, or learn it on a coding bootcamp.

Our locations