Javascript course #2. Variables – .com

Second class of the JavaScript course, and as tradition dictates in programming languages, we start with the variables, their declaration and their use.

2.1 – Variables in JavaScript

We will start with a first video analyzing how we should define the tags in JavaScript and how we can do the tests, thanks to the debugging console that browsers bring.

The variables are neither more nor less than certain “words” that contain data inside that we can show where we want, as well as work with it. As you will see, it is very easy, simple and versatile.

You see, the declaration is not only very simple, but also optional, although recommended, even at the documentation level.

2.2 – Variables in JavaScript

Let’s now work and play with those variables. Let’s see how we can do mathematical operations with the variables that are numbers and how we can join two variables that are text, for example, the first name and the last name.

So, now you see it. Easy and simple. Of course, we must always make sure that when working with numbers the code understands it as such, due to the special condition of numbers, which we can treat both as integrals and as text.

We recommend you repeat the exercises that Luis has done, to gain agility working with variables, and see you in the next class. Until then!

Remember that if you will have access to everybody the courses and you can also enjoy everything from .

All chapters in this course:

Loading Facebook Comments ...
Loading Disqus Comments ...