Node

Node Global Timer Simple Web Server Module Postgres DB
O O

Weather Controls

Time Of Day
Rain
Wind Speed
Wind Direction
Clouds

Node : Module

2022-02-10

require method

index.js

const helloworld = require('./helloworld.js')
helloworld();

helloworld.js

var helloworld = function() {
    console.log('Hello World');
}
module.exports = helloworld;

import method

Newer way of doing it. But most tutorials on the web are not doing it this way.

import http from "http";