- HTML to define the content of web pages
- CSS to specify the layout of web pages
<script> var greeting = "Hello, World!"; //create a variable document.write(greeting); //print the variable </script>
In the example we can spot a variable declaration. It is done using var keyword followed by assignment “=” operator and a string literal enclosed in double quotes. The variable type is therefore a string.
Using Node we can create:
- console based applications
- back-end web server applications
Node has included inside an HTML server that can be used to render and serve HTML pages.