node latest code example
Example 1: node js server
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))
Example 2: node js
Node js allows you to run javascript outside of your browser
ex: you are able to run it on your terminal