1 00:00:09,590 --> 00:00:12,030 Hey, everyone, welcome to another video. 2 00:00:12,050 --> 00:00:15,860 Now it's time to put into practice what we've learned so far. 3 00:00:16,160 --> 00:00:19,820 This is our first list of exercises in this course. 4 00:00:20,120 --> 00:00:22,680 So let me explain how this is going to work. 5 00:00:23,090 --> 00:00:25,430 First, I'm going to read all the questions. 6 00:00:25,610 --> 00:00:27,020 I'm going to give you some tips. 7 00:00:27,380 --> 00:00:32,360 Then you can just stop this video, take your time, solve all the questions. 8 00:00:32,510 --> 00:00:36,850 And then in the next video, you can go back here to see the solution. 9 00:00:37,610 --> 00:00:48,200 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 10 00:00:48,200 --> 00:00:51,780 file at the bottom of this age html page. 11 00:00:51,800 --> 00:00:58,760 So if you go to Visual Studio Code, this is the HTML file for this exercise. 12 00:00:58,760 --> 00:01:03,170 So it's ten dash exercise, one that age HTML. 13 00:01:03,350 --> 00:01:05,300 You can find it here in the list. 14 00:01:05,810 --> 00:01:10,670 If you have this closed, you can just open and close this side panel. 15 00:01:10,850 --> 00:01:18,380 So you are going to create this new jass file in the jazz folder and include the link in this age HTML 16 00:01:18,380 --> 00:01:18,980 file. 17 00:01:20,750 --> 00:01:30,290 Then send the following message to the council, this is E X one dot j.s. so this is important to practice 18 00:01:30,290 --> 00:01:33,290 how to create a jobs file, how to make the link. 19 00:01:33,470 --> 00:01:37,490 And this message sent to the council is good. 20 00:01:37,490 --> 00:01:44,040 So we can test if everything's working, if the link to the file is working, so we can move on. 21 00:01:44,300 --> 00:01:50,200 So after doing this, you can use this file to solve the rest of the exercises below. 22 00:01:50,570 --> 00:01:58,790 So no, to create variables, to store your first name, last name and year of birth in the blue box 23 00:01:58,790 --> 00:02:01,310 below place the following text. 24 00:02:01,490 --> 00:02:09,650 Hi, my name is I'm years old and I'm learning JavaScript, so fill the blanks here. 25 00:02:09,860 --> 00:02:15,260 So in the first space you will have to concatenate your first and last name. 26 00:02:15,260 --> 00:02:19,490 And then here I want you to calculate your age. 27 00:02:19,910 --> 00:02:25,000 So to do this, you need to use the current ear so you have the year of birth. 28 00:02:25,370 --> 00:02:30,890 You can also create another variable for the current year where we are now. 29 00:02:31,100 --> 00:02:35,900 And then you just calculate your age to show in the message. 30 00:02:36,080 --> 00:02:39,800 Then you just placed the message inside this element. 31 00:02:40,680 --> 00:02:48,360 Number three, get the two numbers below and calculate the average, so you have to use the GAT element 32 00:02:48,360 --> 00:02:57,060 by I.D. method to get these two numbers, then you can just calculate the average and use the Internet 33 00:02:57,060 --> 00:03:00,560 age HTML property to show the result here. 34 00:03:00,930 --> 00:03:06,810 Pay attention, because I'm asking you to show the result with two decimal places. 35 00:03:07,410 --> 00:03:14,490 Number four, suppost telephone numbers with nine digits are valid, all others are invalid. 36 00:03:14,910 --> 00:03:18,780 Use JavaScript to test if the below numbers are valid. 37 00:03:19,080 --> 00:03:21,560 So here we have three telephone numbers. 38 00:03:21,720 --> 00:03:28,170 You need to figure out a way of using JavaScript to just test if this is valid or not, and then you 39 00:03:28,170 --> 00:03:33,300 can just send it to the console, something like valid or invalid. 40 00:03:33,570 --> 00:03:35,760 You can also send true or false. 41 00:03:35,790 --> 00:03:37,310 It's really up to you. 42 00:03:37,500 --> 00:03:43,930 The most important thing here is being able to checking if the numbers are valid or not. 43 00:03:44,280 --> 00:03:48,840 Number five sent to the council the result of the following operation. 44 00:03:49,000 --> 00:03:51,300 Thirty two to the power of six. 45 00:03:52,020 --> 00:03:57,900 Number six, consider the following variable names and inform which are invalid. 46 00:03:57,900 --> 00:03:58,520 And why. 47 00:03:58,830 --> 00:04:02,070 So this one, you don't have to send anything to the council. 48 00:04:02,250 --> 00:04:03,810 You just have to write it down. 49 00:04:04,050 --> 00:04:08,670 Then in the next video, you can check if your answers are correct. 50 00:04:08,890 --> 00:04:14,640 So you just need to check these names and inform which of them are invalid and why. 51 00:04:15,150 --> 00:04:18,390 Number seven considered a block of code below. 52 00:04:18,390 --> 00:04:19,230 And guess what? 53 00:04:19,230 --> 00:04:21,460 Values will be shown in the council. 54 00:04:21,690 --> 00:04:27,720 So here we have four variables and then we are doing some controlled longus. 55 00:04:28,080 --> 00:04:36,230 So try to guess what will be the results that will be shown in the console if we execute this here, 56 00:04:36,660 --> 00:04:44,490 you can also write it down your guesses and then you can just copy this and paste it in the file so 57 00:04:44,490 --> 00:04:47,190 you can check if your answers are correct. 58 00:04:48,000 --> 00:04:52,050 Number eight, do the transformation's, the URL below. 59 00:04:52,200 --> 00:04:59,730 So we have these four boxes, if you need to check the IDs of them, you can just right click and go 60 00:04:59,730 --> 00:05:04,260 to the inspector and then you will find all the IDs for the boxes. 61 00:05:04,560 --> 00:05:11,180 You are going to need them to get the values in to paste the values to the other boxes. 62 00:05:11,370 --> 00:05:20,850 So in this first example, I have just this clean URL and I want you to add the steps column for Slash 63 00:05:21,000 --> 00:05:24,510 to the beginning and then paste the complete your URL here. 64 00:05:24,870 --> 00:05:27,840 In the second example, I want you to do the opposite. 65 00:05:28,050 --> 00:05:36,800 So here we have a full URL and I want you to paste just the clean your URL here starting from w w w 66 00:05:37,050 --> 00:05:39,360 so this is the first exercise. 67 00:05:39,600 --> 00:05:40,920 Just take your time. 68 00:05:41,340 --> 00:05:44,520 If you need to do some research, just go to Google. 69 00:05:44,730 --> 00:05:49,350 If you need to go back to the lessons we had so far, do it. 70 00:05:49,680 --> 00:05:51,930 This is the time to practice. 71 00:05:52,230 --> 00:05:56,940 And when you're finished, you can just go to the next video to see the solution. 72 00:05:57,120 --> 00:05:57,780 Good luck.