node-module.hashnode.devNode.js Module SystemNode.js has two module systems: CommonJS Modules: ECMAScript Modules (ESM): CommonJS Modules: This is the traditional module system in Node.js. Files with .cjs extension are treated as CommonJS modules. Files with .js extension are treated as ...Nov 25, 2024·2 min read
repl.hashnode.devWhy there is no WIndow or Document in the Node.jsIn Node.js, there is no window or document object because Node.js operates in a server-side environment, not a browser environment. Here's why these objects are absent: Browser-Specific Objects: The window object represents the browser window and pr...Nov 24, 2024·2 min read
repl.hashnode.devREPL in NodeREPL, which stand for Read Eval Print Loop, is an interactive programming enviroment that allows you to execute Javascript code in the real time time . In Node.js, the REPL functionality provide a Command-Line interface(CLI) where you can type Javasc...Nov 22, 2024·1 min read
jsonwebtoken.hashnode.devJWT (JSON Web Token )What is JWT and Why it is using? JWT stands for the JSON Web Token. It’s a compact way to send data between two parties,usually between our browser and a server, in a safe and verifiable way. JWT is mostly used to make sure you stay logged in as you ...Oct 21, 2024·3 min read