The beginnings of learning
JS is a versatile language. It is most often used on websites to provide interaction by reacting to events, creating visual effects or validating data such as jQuery. JS can also be used to create games in various browsers using a framework, e.g. Phaser. Platforms such as Electron.js make it possible to create multi-platform applications using network technologies.
There is often advice that you have to learn JS first and then “cut off” the script, and you already know Java. It’s clear that this is just a play on words and should not be taken completely seriously, as it is not the same thing. There are many fundamental differences between these languages, and their usefulness has different directions.
JS works only in a browser, Java can be run additionally in a virtual machine. Additionally, JS is a typical scripting language, and Java is an objective programming language. The fact is, however, that both require the installation of appropriate plugins, so you need some theoretical knowledge when you start working in JS. All you need to write codes is a text editor and a browser. You don’t even need to compile any code, so it’s a simple language to learn.
Probably the problem you can face is the fact that the codes may work differently depending on the browser. However, these differences disappear as browsers develop. Problems can arise when writing larger applications. JS is a single-threaded language, so async was introduced into the language, which allowed techniques such as Ajax to be developed. This caused problems with the order in which the code was executed. Debugging is also easy, because browsers have built-in tools for developers. Most problems can be solved without the Internet or documentation. The whole thing, therefore, makes learning a language easy, while using it in practice and its entire ecosystem looks a bit worse.
Summing up everything that has been described above, the beginnings with JS are very interesting. First of all, you will learn how to use all developer tools in browsers. You have probably used the browser more than once, and you know that it is not difficult, you only need to use the shortcut ctrl + shift + i.
It is here that the first steps will be taken to introduce you to the world of the Internet and how it works. The first lessons will show many interesting facts not only in JS itself, but also in general programming. When you try to learn the secrets of the Internet from the very beginning, the functioning of websites will have no secrets from you and will not be a big question mark.
JS is one of the main languages that programmers use, but they also have a few others at their disposal, which we’ll cover in future entries.
The C language is the oldest and most popular language used by programmers. It is also a structured language that does not need object-oriented programming, although object-oriented coding is possible in it. However, it is far from how it is used in...
Kotlin is it worth getting to know, use and bet on it? We all know very well that nature does not like a vacuum, and it is the same in the IT world. Every now and then new concepts, languages and technologies are created, and still others come back...
When you make your life decision and get interested in programming, you find Python pretty quickly. It is one of the most popular languages due to its specific application, which has become the focus of many coders. Before you reach for it, however, you need to know...