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.
New Year's resolutions A few days ago we started the New Year 2022, many of us have new goals for this year, bigger and smaller dreams, and we look at these new 365 days with hope. Someone wants to quit smoking, someone wants to get rid of excess pounds...
Christmas is coming The most beautiful, white, frosty and wonderful Christmas is coming fast. Sometimes it happens that we are so stressed with them that in the rush of organizational matters related to them, we miss the most important thing, that it is the time of...
Slack gives a number of new features, as well as more efficient work Slack First Sustainability - deals with effective cooperation between companies and suppliers, allowing them to achieve the ability to report investment in scope 3. At the same time, it allows to...