JavaScript ServerSide

Sept 20, 2022

Node.Js scripts

Local js file

node console.js

Include js file

<script src=console.js></script>

client side

We’ll use it going forward to update things in the browser, to control and interact with the user

ESLint

Prettier

Modules

Modules are a way that Node.js can split JavaScript into separate modules. By using the require keyword (Links to an external site.), you can enable the use of a module. Example:

const express = require('express');

Now you would be able to access the functions that module exports, like

const router = express.Router();