We track sessions with cookies For what?
close

Select a language

<p>The sequence of learning JavaScript</p>
September 5, 2021#tech

The sequence of learning JavaScript

In this article, we want to highlight the main points that will help you start learning JS in the right sequence. Or to improve knowledge of this programming language. Below you will find short topics, as well as the main points that you need to learn in order to understand how to work with this or that concept in JS. Let `s start? Let's break our quick overview of the main topics for learning into blocks and talk about each of them in more detail:

  1. What is JavaScript;

  2. Basics;

  3. Strings;

  4. Functions;

  5. Arrays;

  6. Objects;

  7. Asynchrony.

First of all, you need to understand what JavaScript is. I think that everyone reading this article knows that this is a programming language. Programs written in it can be called scripts that can be embedded in HTML and executed automatically. Today JS can be executed wherever there is a JavaScript engine. In Chrome and Opera it is V8 and Firefox is SpiderMonkey. In the block of JavaScript basics, you need to master such basic aspects as:

  • what data types are there?

  • how is interaction done in JS (alert, prompt, confirm)?

  • what are the main (basic) operators?

  • what are arrow functions?

In the block with strings, you need to understand what this data type is. There are different kinds of quotes in JS: single and double quotation marks essentially work the same. But if you use back quotes, then arbitrary expressions can be written to such a string. And you also need to know what methods are there for strings and how can you find out the length of a string?

In the block with functions, you need to understand why they are generally needed and how you can declare a function in JS. You also need to understand what is “Function Declaration & Expression”? What are Anonymous Functions? And what are arrow functions?

In the next block, which is important for learning JS, you need to have an understanding of arrays. How to declare it and what are the main methods of arrays? In this block we will talk about objects. The object can be written using curly braces. An object can have properties: a key: value pair. You also need to understand how to write a new method to an object, what is this for an object.

In the final block, you need to understand how asynchrony works in JS and how it is represented. First of all, asynchrony in JS introduces promise. Promises have two arguments: resolve - successful completion of the task, reject - the task was completed with an error. The Promise object is the link between the executor and consuming functions such as (.then, .catch, .finally). then is the function that will be executed after the promise enters a successfully executed state and receives a result. catch - serves to handle errors, and finally is executed in any case, regardless of whether we have successful completion of the task or the task will be completed with an error. Also in this block you need to understand what callStack and eventLoop are.

In conclusion, I would like to note that if you understand the basics of JS and its basic concepts, it will allow you to study more advanced topics in the future. And also go through the interview stage in many companies where knowledge of this programming language is required.

Hope this article was helpful to you. Happy and interesting learning!