Hey, everyone, welcome to another video.
Now it's time to put into practice what we've learned so far.
This is our first list of exercises in this course.
So let me explain how this is going to work.
First, I'm going to read all the questions.
I'm going to give you some tips.
Then you can just stop this video, take your time, solve all the questions.
And then in the next video, you can go back here to see the solution.
So no one in the jazz folder start a new jazz file and name it X one dot J.S. make the link to this
file at the bottom of this age html page.
So if you go to Visual Studio Code, this is the HTML file for this exercise.
So it's ten dash exercise, one that age HTML.
You can find it here in the list.
If you have this closed, you can just open and close this side panel.
So you are going to create this new jass file in the jazz folder and include the link in this age HTML
file.
Then send the following message to the council, this is E X one dot j.s. so this is important to practice
how to create a jobs file, how to make the link.
And this message sent to the council is good.
So we can test if everything's working, if the link to the file is working, so we can move on.
So after doing this, you can use this file to solve the rest of the exercises below.
So no, to create variables, to store your first name, last name and year of birth in the blue box
below place the following text.
Hi, my name is I'm years old and I'm learning JavaScript, so fill the blanks here.
So in the first space you will have to concatenate your first and last name.
And then here I want you to calculate your age.
So to do this, you need to use the current ear so you have the year of birth.
You can also create another variable for the current year where we are now.
And then you just calculate your age to show in the message.
Then you just placed the message inside this element.
Number three, get the two numbers below and calculate the average, so you have to use the GAT element
by I.D. method to get these two numbers, then you can just calculate the average and use the Internet
age HTML property to show the result here.
Pay attention, because I'm asking you to show the result with two decimal places.
Number four, suppost telephone numbers with nine digits are valid, all others are invalid.
Use JavaScript to test if the below numbers are valid.
So here we have three telephone numbers.
You need to figure out a way of using JavaScript to just test if this is valid or not, and then you
can just send it to the console, something like valid or invalid.
You can also send true or false.
It's really up to you.
The most important thing here is being able to checking if the numbers are valid or not.
Number five sent to the council the result of the following operation.
Thirty two to the power of six.
Number six, consider the following variable names and inform which are invalid.
And why.
So this one, you don't have to send anything to the council.
You just have to write it down.
Then in the next video, you can check if your answers are correct.
So you just need to check these names and inform which of them are invalid and why.
Number seven considered a block of code below.
And guess what?
Values will be shown in the council.
So here we have four variables and then we are doing some controlled longus.
So try to guess what will be the results that will be shown in the console if we execute this here,
you can also write it down your guesses and then you can just copy this and paste it in the file so
you can check if your answers are correct.
Number eight, do the transformation's, the URL below.
So we have these four boxes, if you need to check the IDs of them, you can just right click and go
to the inspector and then you will find all the IDs for the boxes.
You are going to need them to get the values in to paste the values to the other boxes.
So in this first example, I have just this clean URL and I want you to add the steps column for Slash
to the beginning and then paste the complete your URL here.
In the second example, I want you to do the opposite.
So here we have a full URL and I want you to paste just the clean your URL here starting from w w w
so this is the first exercise.
Just take your time.
If you need to do some research, just go to Google.
If you need to go back to the lessons we had so far, do it.
This is the time to practice.
And when you're finished, you can just go to the next video to see the solution.
Good luck.