SKSonu Kumarinnode-module.hashnode.dev·Nov 25, 2024 · 2 min readNode.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 ...00
SKSonu Kumarinrepl.hashnode.dev·Nov 24, 2024 · 2 min readWhy 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...00
SKSonu Kumarinrepl.hashnode.dev·Nov 22, 2024 · 1 min readREPL 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...00
SKSonu Kumarinjsonwebtoken.hashnode.dev·Oct 21, 2024 · 3 min readJWT (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 ...00