Now with all of that,
we now had an introduction to NodeJS
and we saw the first NodeJS code in action.
We can also see that NodeJS
allows us to create responses programmatically
with code that executes on the remote machine.
We see that with NodeJS we therefore can replace HTML files,
which hold our content.
But at the moment, this might not seem too useful.
After all, we were able to build beautiful pages
with HTML and CSS,
and now we're back to simpler pages as we saw them before,
which are not too useful.
Now that's only the case
because we're just getting started with NodeJS.
Now that we have these basics, we can dig deeper
and we can gradually build more complex things with NodeJS
until we then reach the point
where we can do things with NodeJS
that we can't do with just HTML, CSS,
and browser site JavaScript.
And for example, we'll soon be able to also store data
submitted by the user and then create dynamic responses,
HTML files with dynamic content
that's more useful than just this timestamp.
Nonetheless, we now see how NodeJS syntax
generally looks like, and it is key to understand
that we now get a brand new way of producing responses.
Instead of just writing these browser instructions,
HTML, CSS, and JavaScript
that are then being sent to the browser,
we now have full control over the response
that should be sent back.
And whilst that might still contain HTML code,
we now also can do more things on that server side,
on that remote machine,
like getting that time snapshot
or in the future accessing a database.
And therefore, it is now time to dive deeper
so that we soon can build more useful things with NodeJS.