🚀 Introduction to JavaScript
Any web page on the Internet is built, at a minimum, by HTML (a markup language) and CSS (a style language).
The first of these allows building all the markup of the page (content and information) using HTML tags and giving semantics to the information through the nature of these tags.
Later, the second one allows giving style to the page and building a more pleasant visual interface for the user.
The well-marked separation of these two pillars allows that if at any time we need to modify the information (or the design) of the page, we do not also have to deal with modifications in the other.
However, using solely and exclusively HTML and CSS in a page limits us considerably.
While it is true that with these two languages we can do a great range of things, there are others that would be totally impossible, or at least, much easier to do if we had a programming language at our disposal.
And this is where JavaScript appears.
What is JavaScript?
JavaScript is a programming language, or what is the same, a mechanism with which we can tell our browser what tasks it must perform, in what order and how many times (for example).
Many of the tasks we perform with HTML and CSS could be performed with JavaScript.
In fact, it is very likely that at first it seems much more complicated to do it with JavaScript, and therefore not worth it.
However, over time we will see that JavaScript offers us greater flexibility and a wider range of possibilities, and that used well, can save us a lot of time.