1
00:00:00,390 --> 00:00:01,260
Not bad, not bad.

2
00:00:01,500 --> 00:00:08,180
We now know how the rubble works, but what about a more serious note application?

3
00:00:08,640 --> 00:00:12,450
How do we get Noad to evaluate our code?

4
00:00:12,840 --> 00:00:17,060
Well, we would need to start by creating a project, right.

5
00:00:17,340 --> 00:00:23,880
So back on my desktop, we're going to create a new folder and surprise, surprise, I will call this

6
00:00:23,880 --> 00:00:24,470
tutorial.

7
00:00:24,480 --> 00:00:24,850
Why?

8
00:00:25,470 --> 00:00:27,600
Because we'll do two totally things.

9
00:00:28,050 --> 00:00:34,140
And I'm going to say to Tori all you want, you can have node, but I'm just going to leave it as a

10
00:00:34,140 --> 00:00:34,670
tutorial.

11
00:00:35,160 --> 00:00:38,770
And then, of course, we'll have to use our text at her.

12
00:00:38,880 --> 00:00:45,450
In my case, like I already previously mentioned, I'm using Visual Studio code, and my preferred method

13
00:00:45,450 --> 00:00:46,980
is just drag and drop.

14
00:00:47,400 --> 00:00:51,840
And then instead of the folder, what I want is to create a new file.

15
00:00:52,110 --> 00:00:56,400
And this is the case where you can literally name it whatever you want.

16
00:00:56,650 --> 00:01:06,000
And in my case, I'm going to go with App and Jess and in this IMGs and I only want to write some more

17
00:01:06,000 --> 00:01:07,440
serious note program.

18
00:01:07,740 --> 00:01:11,610
And the program is going to be following where there is a const.

19
00:01:11,790 --> 00:01:13,920
So there's a variable by the name of amount.

20
00:01:14,220 --> 00:01:20,880
And as a side note, I'll make there's bigger and I'll probably bump up on size just so we can see a

21
00:01:20,880 --> 00:01:21,540
bit clearer.

22
00:01:22,230 --> 00:01:26,280
So we're going to go with const and not also close the sidebar.

23
00:01:26,580 --> 00:01:32,520
Hopefully you see that I have the file by the name of AMP Jazz and like I previously mentioned, we're

24
00:01:32,520 --> 00:01:37,050
going to have variable by the name of amount and it's going to be equal to 12.

25
00:01:37,290 --> 00:01:44,490
And now let's set up a condition where if amount is less than 10 and we simply cancel a small number

26
00:01:44,850 --> 00:01:48,440
and otherwise we'll just say that the number is large.

27
00:01:48,810 --> 00:01:55,290
So we go with F and we're looking for amount is less than 10.

28
00:01:55,480 --> 00:02:01,140
And if that is the case, we go with console log and we'll just say small number.

29
00:02:01,650 --> 00:02:10,590
And otherwise, if it is equal or bigger, then then then we go onto a log and we say a large number.

30
00:02:10,949 --> 00:02:14,640
And at the end of the day we just write a log.

31
00:02:14,910 --> 00:02:17,160
Hey, it's my first node up.

32
00:02:17,310 --> 00:02:20,310
As you can see, an extremely complicated functionality.

33
00:02:20,670 --> 00:02:23,640
And in this case, I'm just going to set up the template strings.

34
00:02:23,910 --> 00:02:32,160
So you understand that, of course, we can use them here as well and say, hey, it's my first node

35
00:02:32,160 --> 00:02:37,950
app and if you want, you can jam the hello world or somewhere as well is that is the traditional approach

36
00:02:37,950 --> 00:02:39,330
with the first program.

37
00:02:39,780 --> 00:02:45,990
And then in order to execute this code, we effectively have two options.

38
00:02:46,380 --> 00:02:51,030
I can navigate back to my terminal and I can zoom in.

39
00:02:51,160 --> 00:02:57,870
OK, so now I'm in a route, so I would need to navigate through the desktop and probably the fastest

40
00:02:57,870 --> 00:03:03,140
way is just typing city and drag and drop my folder here.

41
00:03:03,690 --> 00:03:11,910
OK, so now are you as you can see, I'm in the material and in order to execute my code I just need

42
00:03:11,910 --> 00:03:20,910
to type node and then app just now keep in mind that technically I could have done that from the route.

43
00:03:21,330 --> 00:03:26,700
I would just need to provide the full path when I got users, blah blah blah and then tutorial and of

44
00:03:26,700 --> 00:03:31,770
course the filename is abcess and let me bump up the font size even more.

45
00:03:32,040 --> 00:03:34,860
And the moment we run it, check it out.

46
00:03:35,130 --> 00:03:39,690
We have a large number and hey, it's my first node up.

47
00:03:39,930 --> 00:03:46,590
Now, if you don't believe me, we can go back and we, for example, can say that the number is nine.

48
00:03:46,720 --> 00:03:53,970
Again, we would need to run the code and we're going to go with Node and then up J.S. Beautiful.

49
00:03:54,180 --> 00:04:00,090
We have a small number and we still have our hey, it's my first node up again.

50
00:04:00,270 --> 00:04:07,290
The whole point of this line here is just to showcase that not only we can use quotation marks, but

51
00:04:07,290 --> 00:04:10,190
also we can use the template string as well.

52
00:04:10,530 --> 00:04:11,940
So that's one option.

53
00:04:12,240 --> 00:04:19,470
But if you're familiar with this code, you know that it has this cool feature of integrated terminal

54
00:04:19,860 --> 00:04:27,480
where effectively we have our terminal, but it is a right way pointing to our folder so we don't need

55
00:04:27,480 --> 00:04:31,710
to do this whole dance where we navigate to the folder and then run the app.

56
00:04:31,980 --> 00:04:37,410
We simply can open this up and the shortcut is control and Tilde.

57
00:04:37,620 --> 00:04:41,130
And also keep in mind that you can navigate through the tabs.

58
00:04:41,460 --> 00:04:47,280
Problem is that I always forget where it is and effectively we need to go to view.

59
00:04:47,730 --> 00:04:49,890
And then you're looking for this terminal.

60
00:04:49,890 --> 00:04:50,520
Come on here.

61
00:04:51,270 --> 00:04:53,130
As you can see, this would be a shortcut.

62
00:04:53,940 --> 00:05:00,970
Control and Tilde, and in here we have nice suggestion that we are already located in tutorial folder.

63
00:05:01,380 --> 00:05:03,000
And what do we need to do?

64
00:05:03,180 --> 00:05:07,020
Well, again, we just go with node pajares.

65
00:05:07,110 --> 00:05:07,460
Why?

66
00:05:07,530 --> 00:05:09,730
Well, because that is in my file.

67
00:05:10,110 --> 00:05:15,570
So for the remainder of the course, I will use the integrated terminal that comes with this code.

68
00:05:15,580 --> 00:05:19,220
Just understand that both of them effectively do the same thing.

69
00:05:19,500 --> 00:05:20,530
And there it is.

70
00:05:20,550 --> 00:05:29,100
Now I run node abcess because that is the file name and I have a small number and hey, it's my first

71
00:05:29,100 --> 00:05:35,940
node up and that's how we can evaluate a more serious code using node.

