Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,330 --> 00:00:06,720
Once we have not installed, you might want to open up your favorite text editor to start writing some
2
00:00:06,720 --> 00:00:07,470
JavaScript.
3
00:00:08,100 --> 00:00:10,470
You can use whatever you want for this.
4
00:00:10,860 --> 00:00:16,590
The most popular one right now is Visual Studio Code or voice code.
5
00:00:17,510 --> 00:00:23,990
Again, you can use whatever you want for this, but if you don't have this code, you might want to
6
00:00:24,020 --> 00:00:25,550
download it for your system.
7
00:00:26,750 --> 00:00:30,830
Whether that's Mac or Windows or Linux.
8
00:00:32,120 --> 00:00:39,320
Whatever your operating system is, you can download this code here, and once you've downloaded it,
9
00:00:39,320 --> 00:00:40,700
you can open it up.
10
00:00:42,470 --> 00:00:49,370
And start writing our first note file, so first thing, we're going to create a new file and we're
11
00:00:49,370 --> 00:00:50,450
going to save it.
12
00:00:52,720 --> 00:00:54,850
As hello, Jess.
13
00:00:56,240 --> 00:01:02,810
In my case, I already have a file called Hello, so I'll replace it and then the editor area here,
14
00:01:02,810 --> 00:01:10,670
I can start writing some node code and by node code, it's just JavaScript, so I could write a function,
15
00:01:11,510 --> 00:01:14,330
say find meaning.
16
00:01:15,430 --> 00:01:23,230
Just like we do in JavaScript, and I'll return 40 to now if we want to open up our terminal and run
17
00:01:23,230 --> 00:01:24,160
this program.
18
00:01:24,520 --> 00:01:32,200
We can use the terminal in our operating system, but this code allows us to open up a terminal by going
19
00:01:32,200 --> 00:01:40,300
to the terminal option and selecting New Terminal, which gives us a terminal inside of the code.
20
00:01:41,370 --> 00:01:49,080
Now you might prefer to have the terminal separate and not clutter up your screen here too much.
21
00:01:49,380 --> 00:01:50,430
And that's OK.
22
00:01:50,460 --> 00:01:51,990
That's a personal preference.
23
00:01:52,350 --> 00:01:57,510
But now we can run commands like Node, which would run our apple.
24
00:01:58,050 --> 00:02:05,250
But if we pass in the name of the file that we just wrote, Node will run that file for us.
25
00:02:05,610 --> 00:02:09,660
OK, and since our function didn't actually do anything.
26
00:02:10,620 --> 00:02:11,730
It looks like it's working.
27
00:02:12,890 --> 00:02:16,310
So let's just make sure by console that logging.
28
00:02:17,670 --> 00:02:19,830
The result of find meaning.
29
00:02:25,520 --> 00:02:26,090
Awesome.
30
00:02:26,120 --> 00:02:28,700
It looks like things are working now.
31
00:02:28,730 --> 00:02:38,360
One of the great things about vs code is that it supports a lot of different extensions for Node.js.
32
00:02:39,140 --> 00:02:43,640
These are add ons that make our development life a little bit easier.
33
00:02:44,780 --> 00:02:51,890
And one that I like to make sure is installed is the Visual Studio Intel code plugin, which gives us
34
00:02:51,890 --> 00:02:54,110
some additional information.
35
00:02:56,070 --> 00:03:00,270
And auto completion items for when we're writing our code.
36
00:03:04,350 --> 00:03:06,840
So we can install that by pressing install.
37
00:03:08,450 --> 00:03:12,590
And now in our JavaScript files, if we start writing some code.
38
00:03:14,370 --> 00:03:22,680
The topmost element here, the first suggestion is the one that's most likely to be relevant to your
39
00:03:22,680 --> 00:03:23,250
program.
40
00:03:23,760 --> 00:03:31,560
So in this case, I actually want to be calling a function on the object class, say object a sign.
41
00:03:32,740 --> 00:03:39,160
The intel a code plug in makes the auto completion and voice code a little bit more effective.
42
00:03:39,940 --> 00:03:43,960
And you can scroll through these plug ins and select whichever ones you prefer.
43
00:03:44,800 --> 00:03:49,870
Say we're making containers with Docker and we want to install a plug in for that.
44
00:03:49,900 --> 00:03:56,320
We could do that, but that's for later in the course, and it's completely optional.
45
00:03:56,920 --> 00:04:01,030
Again, you can use any I.D. or editor that you prefer.
46
00:04:01,480 --> 00:04:08,590
I just think that vs code is great for the purposes of this course and my recommendation if you don't
47
00:04:08,590 --> 00:04:10,600
already have a strong preference.
48
00:04:11,200 --> 00:04:13,870
It's all up to you which editor you choose.
49
00:04:14,350 --> 00:04:21,010
And at the end of the day, as a developer, you're going to be picking and customizing your environment.
50
00:04:21,160 --> 00:04:26,680
However you like, the most important thing is that you're comfortable with your own environment.
51
00:04:27,400 --> 00:04:29,260
All right, I'll see you in the next one.
5103
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.