1
00:00:02,180 --> 00:00:04,220
Now with all of that,

2
00:00:04,220 --> 00:00:06,950
we now had an introduction to NodeJS

3
00:00:06,950 --> 00:00:10,410
and we saw the first NodeJS code in action.

4
00:00:10,410 --> 00:00:12,360
We can also see that NodeJS

5
00:00:12,360 --> 00:00:16,700
allows us to create responses programmatically

6
00:00:16,700 --> 00:00:21,150
with code that executes on the remote machine.

7
00:00:21,150 --> 00:00:26,080
We see that with NodeJS we therefore can replace HTML files,

8
00:00:26,080 --> 00:00:28,160
which hold our content.

9
00:00:28,160 --> 00:00:31,200
But at the moment, this might not seem too useful.

10
00:00:31,200 --> 00:00:34,410
After all, we were able to build beautiful pages

11
00:00:34,410 --> 00:00:36,400
with HTML and CSS,

12
00:00:36,400 --> 00:00:40,230
and now we're back to simpler pages as we saw them before,

13
00:00:40,230 --> 00:00:42,240
which are not too useful.

14
00:00:42,240 --> 00:00:43,630
Now that's only the case

15
00:00:43,630 --> 00:00:46,297
because we're just getting started with NodeJS.

16
00:00:47,321 --> 00:00:50,460
Now that we have these basics, we can dig deeper

17
00:00:50,460 --> 00:00:55,080
and we can gradually build more complex things with NodeJS

18
00:00:55,080 --> 00:00:56,840
until we then reach the point

19
00:00:56,840 --> 00:00:59,710
where we can do things with NodeJS

20
00:00:59,710 --> 00:01:03,640
that we can't do with just HTML, CSS,

21
00:01:03,640 --> 00:01:06,600
and browser site JavaScript.

22
00:01:06,600 --> 00:01:09,880
And for example, we'll soon be able to also store data

23
00:01:09,880 --> 00:01:14,680
submitted by the user and then create dynamic responses,

24
00:01:14,680 --> 00:01:17,690
HTML files with dynamic content

25
00:01:17,690 --> 00:01:20,963
that's more useful than just this timestamp.

26
00:01:21,860 --> 00:01:24,900
Nonetheless, we now see how NodeJS syntax

27
00:01:24,900 --> 00:01:28,760
generally looks like, and it is key to understand

28
00:01:28,760 --> 00:01:33,240
that we now get a brand new way of producing responses.

29
00:01:33,240 --> 00:01:37,040
Instead of just writing these browser instructions,

30
00:01:37,040 --> 00:01:39,770
HTML, CSS, and JavaScript

31
00:01:39,770 --> 00:01:42,540
that are then being sent to the browser,

32
00:01:42,540 --> 00:01:45,270
we now have full control over the response

33
00:01:45,270 --> 00:01:46,570
that should be sent back.

34
00:01:46,570 --> 00:01:50,350
And whilst that might still contain HTML code,

35
00:01:50,350 --> 00:01:54,070
we now also can do more things on that server side,

36
00:01:54,070 --> 00:01:55,580
on that remote machine,

37
00:01:55,580 --> 00:01:58,380
like getting that time snapshot

38
00:01:58,380 --> 00:02:01,663
or in the future accessing a database.

39
00:02:02,570 --> 00:02:05,270
And therefore, it is now time to dive deeper

40
00:02:05,270 --> 00:02:09,987
so that we soon can build more useful things with NodeJS.

