1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9918],{85312:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/docs/node/node1",function(){return a(27502)}])},27502:function(e,t,a){"use strict";a.r(t);var n=a(11527),d=a(83850),o=a(51024),s=a(14291);a(38706),a(53127);var r=a(26736);a(42737),a(44637),a(36887),a(96052);var i=a(40485),c=a(35334);a(41093),a(44970),a(78605),a(40227),a(96446),a(53157),a(59010);let l={MDXContent:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapper:t}=Object.assign({},(0,r.ah)(),e.components);return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(u,{...e})}):u(e)},pageOpts:{filePath:"pages/docs/node/node1.mdx",route:"/docs/node/node1",headings:[{depth:2,value:"â What is Node.js?",id:"-what-is-nodejs"},{depth:2,value:"â Why do we use Node?",id:"-why-do-we-use-node"},{depth:2,value:"â History of Node.js",id:"-history-of-nodejs"},{depth:2,value:"â Is javascript and Node.js same?",id:"-is-javascript-and-nodejs-same"},{depth:3,value:"Conclusion",id:"conclusion"}],pageMap:[{kind:"Meta",data:{index:{title:"CodeXam",type:"page",display:"hidden",theme:{layout:"raw"}},playground:{title:"Playground",type:"page",theme:{toc:!1,layout:"raw",footer
1:!1}},showcase:{title:"Guide",type:"page",theme:{toc:!0}},xamdoc:{title:"Documentation",type:"page",theme:{toc:!0},items:{CXBS:{title:"CodeXam Blog Setup",href:"/xamdoc"},"Front Page":{title:"Front Page"}}},docs:{title:"Tutorial",type:"page",theme:{toc:!0}},xamdev:{title:"Writer's Space",type:"page",theme:{toc:!0}},faq:{title:"FAQ",type:"menu",items:{about:{title:"About CodeXam",href:"/docs/about"},community:{title:"Community"},soonmsz:{title:"Short Message",type:"/docs/soonmsz",display:"hidden"}}},confirm:"Confirm"}},{kind:"MdxPage",name:"confirm",route:"/confirm"},{kind:"Folder",name:"docs",route:"/docs",children:[{kind:"Folder",name:"DSA",route:"/docs/DSA",children:[{kind:"Meta",data:{erb:"Roadmap",dsr:"DataStructures Introduction",arr:"Array Data Structure",llds:"Linked List Data Structure"}},{kind:"MdxPage",name:"arr",route:"/docs/DSA/arr"},{kind:"MdxPage",name:"dsr",route:"/docs/DSA/dsr"},{kind:"MdxPage",name:"erb",route:"/docs/DSA/erb"},{kind:"MdxPage",name:"llds",route:"/docs/DSA/llds"}]},{kind:"MdxPage",name:"DSA",route:"/docs/DSA"},{kind:"Folder",name:"Hooks",route:"/docs/Hooks",children:[{kind:"Folder",name:"React",route:"/docs/Hooks/React",children:[{kind:"Meta",data:{useState:"useState",useEffect:"Useeffect"}},{kind:"MdxPage",name:"useEffect",route:"/docs/Hooks/React/useEffect"},{kind:"MdxPage",name:"useState",route:"/docs/Hooks/React/useState"}]},{kind:"MdxPage",name:"React",route:"/docs/Hooks/React"},{kind:"Meta",data:{React:"React"}}]},{kind:"MdxPage",name:"Hooks",route:"/docs/Hooks"},{kind:"Folder",name:"OopsJava",route:"/docs/OopsJava",children:[{kind:"Meta",data:{java0:"Hand Written Small Notes",java1:"Introduction Of OOPs",java2:"Basic Terminology"}},{kind:"MdxPage",name:"java0",route:"/docs/OopsJava/java0"},{kind:"MdxPage",name:"java1",route:"/docs/OopsJava/java1"},{kind:"MdxPage",name:"java2",route:"/docs/OopsJava/java2"}]},{kind:"MdxPage",name:"OopsJava",route:"/docs/OopsJava"},{kind:"Meta",data:{index:{title:"Video Tutorial",type:"page",theme:{typesetting:"article",layout:"full"}},"-- DSA --":{type:"separator",title:"Data Structures and Algorithms"},DSA:"Java,C++,Python & C","-- OOPs --":{type:"separator",title:"Object Oriented Programming"},OopsJava:"Java","-- Coding Practice --":{type:"separator",title:"Coding Practice"},leetcode:"Leetcode","-- DBMS --":{type:"separator",title:"Database Management System"},dbms:"DBMS","-- Machine Learning --":{type:"separator",title:"Machine Learning"},machinelearning:"Machine Learning Theory","-- Cyber Security --":{type:"separator",title:"Cyber Security"},cybersecurity:"Cyber Security","-- WebDev & AppDev --":{type:"separator",title:"Web & App Development"},html:"HTML Tutorial",tailwindcss:"Tailwind CSS Tutorial",js:"JavaScript Tutorial",react:"React Tutorial",reactnative:"React NativeTutorial",next:"Next.js Tutorial",Hooks:"React/Next Hooks",node:"Node.js Tutorial",docker:"Docker Tutorial","-- Projects --":{type:"separator",title:"Project Based Coaching"},project:"Project Tutorial","-- About --":{type:"separator",title:"Advance"},about:"CodeXam Website Project",soonmsz:"Message",exp:"Experiment"}},{kind:"MdxPage",name:"about",route:"/docs/about"},{kind:"Folder",name:"cybersecurity",route:"/docs/cybersecurity",children:[{kind:"Meta",data:{mod1:"Introduction To CyberSecurity"}},{kind:"MdxPage",name:"mod1",route:"/docs/cybersecurity/mod1"}]},{kind:"MdxPage",name:"cybersecurity",route:"/docs/cybersecurity"},{kind:"Folder",name:"dbms",route:"/docs/dbms",children:[{kind:"Meta",data:{dbms1:"Introduction",dbms2:"DBMS Architecture",dbms3:"ER Model",dbms4:"Extended ER Features",dbms5:"Banking System ER"}},{kind:"MdxPage",name:"dbms1",route:"/docs/dbms/dbms1"},{kind:"MdxPage",name:"dbms2",route:"/docs/dbms/dbms2"},{kind:"MdxPage",name:"dbms3",route:"/docs/dbms/dbms3"},{kind:"MdxPage",name:"dbms4",route:"/docs/dbms/dbms4"},{kind:"MdxPage",name:"dbms5",route:"/docs/dbms/dbms5"}]},{kind:"MdxPage",name:"dbms",route:"/docs/dbms"},{kind:"MdxPage",name:"docker",route:"/docs/docker"},{kind:"MdxPage",name:"exp",route:"/docs/exp"},{kind:"Folder",name:"html",route:"/docs/html",children:[{kind:"Meta",data:{cheatsheet:"HTML Cheatsheet",chapter1:"Html Basics"}},{kind:"MdxPage",name:"chapter1",route:"/docs/html/chapter1"},{kind:"MdxPage",name:"cheatsheet",route:"/docs/html/cheatsheet"}]},{kind:"MdxPage",name:"html",route:"/docs/html"},{kind:"MdxPage",name:"index",route:"/docs"},{kind:"Folder",name:"js",route:"/docs/js",children:[{kind:"Meta",data:{js1:"Unknown Facts",js2:"Setup Guide",js3:"Our IDE Use Guide",js4:"Variables And DataTypes",js5:"Primitives and Objects",js6:"Revision 1 ",js7:"Operators & Expressions",js8:"Comments Out",js9:"Prompt & Alert",js10:"Conditional Statements",js11:"Switch Statement",js12:"Ternary Operator",js13:"Revision 2",js14:"Loops in JavaScript",js15:"For Loop",js16:"While Loop",js17:"Do While Loop",js18:"Functions",js19:"Revision 3",js20:"Strings",js21:"String Methods",js22:"Escape Characters",js23:"Revision 4",js24:"Arrays",js25:"Array Methods",js26:"Revision 5"}},{kind:"MdxPage",name:"js1",route:"/docs/js/js1"},{kind:"MdxPage",name:"js10",route:"/docs/js/js10"},{kind:"MdxPage",name:"js11",route:"/docs/js/js11"},{kind:"MdxPage",name:"js12",route:"/docs/js/js12"},{kind:"MdxPage",name:"js13",route:"/docs/js/js13"},{kind:"MdxPage",name:"js14",route:"/docs/js/js14"},{kind:"MdxPage",name:"js15",route:"/docs/js/js15"},{kind:"MdxPage",name:"js16",route:"/docs/js/js16"},{kind:"MdxPage",name:"js17",route:"/docs/js/js17"},{kind:"MdxPage",name:"js18",route:"/docs/js/js18"},{kind:"MdxPage",name:"js19",route:"/docs/js/js19"},{kind:"MdxPage",name:"js2",route:"/docs/js/js2"},{kind:"MdxPage",name:"js20",route:"/docs/js/js20"},{kind:"MdxPage",name:"js21",route:"/docs/js/js21"},{kind:"MdxPage",name:"js22",route:"/docs/js/js22"},{kind:"MdxPage",name:"js23",route:"/docs/js/js23"},{kind:"MdxPage",name:"js24",route:"/docs/js/js24"},{kind:"MdxPage",name:"js25",route:"/docs/js/js25"},{kind:"MdxPage",name:"js26",route:"/docs/js/js26"},{kind:"MdxPage",name:"js3",route:"/docs/js/js3"},{kind:"MdxPage",name:"js4",route:"/docs/js/js4"},{kind:"MdxPage",name:"js5",route:"/docs/js/js5"},{kind:"MdxPage",name:"js6",route:"/docs/js/js6"},{kind:"MdxPage",name:"js7",route:"/docs/js/js7"},{kind:"MdxPage",name:"js8",route:"/docs/js/js8"},{kind:"MdxPage",name:"js9",route:"/docs/js/js9"}]},{kind:"MdxPage",name:"js",route:"/docs/js"},{kind:"Folder",name:"leetcode",route:"/docs/leetcode",children:[{kind:"Meta",data:{lc1:"Two Sum"}},{kind:"MdxPage",name:"lc1",route:"/docs/leetcode/lc1"}]},{kind:"MdxPage",name:"leetcode",route:"/docs/leetcode"},{kind:"Folder",name:"machinelearning",route:"/docs/machinelearning",children:[{kind:"Meta",data:{chapter1:"Introduction Of ML",chapter2:"Features And Labels",chapter3:"Data Collection process",chapter4:"Supervised And Unsupervised Learning",sl:"Supervised Details",usl:"Unsupervised Details",chapter5:"Scikit Learn",chapter6:"Training And Test Data",sml:"Scalable Machine Learning"}},{kind:"MdxPage",name:"chapter1",route:"/docs/machinelearning/chapter1"},{kind:"MdxPage",name:"chapter2",route:"/docs/machinelearning/chapter2"},{kind:"MdxPage",name:"chapter3",route:"/docs/machinelearning/chapter3"},{kind:"MdxPage",name:"chapter4",route:"/docs/machinelearning/chapter4"},{kind:"MdxPage",name:"chapter5",route:"/docs/machinelearning/chapter5"},{kind:"MdxPage",name:"chapter6",route:"/docs/machinelearning/chapter6"},{kind:"MdxPage",name:"sl",route:"/docs/machinelearning/sl"},{kind:"MdxPage",name:"sml",route:"/docs/machinelearning/sml"},{kind:"MdxPage",name:"usl",route:"/docs/machinelearning/usl"}]},{kind:"MdxPage",name:"machinelearning",route:"/docs/machinelearning"},{kind:"Folder",name:"next",route:"/docs/next",children:[{kind:"Meta",data:{next1:"Introduction"}},{kind:"MdxPage",name:"next1",route:"/docs/next/next1"}]},{kind:"MdxPage",name:"next",route:"/docs/next"},{kind:"Folder",name:"node",route:"/docs/node",children:[{kind:"Meta",data:{node1:"Introduction to Node js",node2:"Basic Concepts",node3:"Install and Set Up",node4:"First Node js Script",node5:"Fundamentals and Features",node6:"Core Modules",node7:"Create Server",node8:"package.json file",node9:"Challenge",node10:"Nodemon package",node11:"Create a Basic API",node12:"Taking CmdLine Input ",node13:"Display file list",node14:"CRUD Operations",node15:"Asynchronous",node16:"Handle Asynchronous Data",node17:"Node js Works: Event Loop",node18:" Express js Framework",node19:"Routing with Express.js",node20:"Rendering HTML Pages",node21:"Make Html Pages",node22:"Remove extension from URL"}},{kind:"MdxPage",name:"node1",route:"/docs/node/node1"},{kind:"MdxPage",name:"node10",route:"/docs/node/node10"},{kind:"MdxPage",name:"node11",route:"/docs/node/node11"},{kind:"MdxPage",name:"node12",route:"/docs/node/node12"},{kind:"MdxPage",name:"node13",route:"/docs/node/node13"},{kind:"MdxPage",name:"node14",route:"/docs/node/node14"},{kind:"MdxPage",name:"node15",route:"/docs/node/node15"},{kind:"MdxPage",name:"node16",route:"/docs/node/node16"},{kind:"MdxPage",name:"node17",route:"/docs/node/node17"},{kind:"MdxPage",name:"node18",route:"/docs/node/node18"},{kind:"MdxPage",name:"node19",route:"/docs/node/node19"},{kind:"MdxPage",name:"node2",route:"/docs/node/node2"},{kind:"MdxPage",name:"node20",route:"/docs/node/node20"},{kind:"MdxPage",name:"node21",route:"/docs/node/node21"},{kind:"MdxPage",name:"node22",route:"/docs/node/node22"},{kind:"MdxPage",name:"node3",route:"/docs/node/node3"},{kind:"MdxPage",name:"node4",route:"/docs/node/node4"},{kind:"MdxPage",name:"node5",route:"/docs/node/node5"},{kind:"MdxPage",name:"node6",route:"/docs/node/node6"},{kind:"MdxPage",name:"node7",route:"/docs/node/node7"},{kind:"MdxPage",name:"node8",route:"/docs/node/node8"},{kind:"MdxPage",name:"node9",route:"/docs/node/node9"}]},{kind:"MdxPage",name:"node",route:"/docs/node"},{kind:"Folder",name:"project",route:"/docs/project",children:[{kind:"Folder",name:"CrowdDeFiX",route:"/docs/project/CrowdDeFiX",children:[{kind:"Meta",data:{cdfx1:"Installation",cdfx2:"Smart Contract",cdfx3:"Deployment",cdfx4:"Client Setup",cdfx5:"Basic Setup (main.jsx)",cdfx6:"Tailwind Setup",cdfx7:"Assets",cdfx8:"Folder Setup",cdfx9:"App.jsx",cdfx10:"Page's files configuration"}},{kind:"MdxPage",name:"cdfx1",route:"/docs/project/CrowdDeFiX/cdfx1"},{kind:"MdxPage",name:"cdfx10",route:"/docs/project/CrowdDeFiX/cdfx10"},{kind:"MdxPage",name:"cdfx2",route:"/docs/project/CrowdDeFiX/cdfx2"},{kind:"MdxPage",name:"cdfx3",route:"/docs/project/CrowdDeFiX/cdfx3"},{kind:"MdxPage",name:"cdfx4",route:"/docs/project/CrowdDeFiX/cdfx4"},{kind:"MdxPage",name:"cdfx5",route:"/docs/project/CrowdDeFiX/cdfx5"},{kind:"MdxPage",name:"cdfx6",route:"/docs/project/CrowdDeFiX/cdfx6"},{kind:"MdxPage",name:"cdfx7",route:"/docs/project/CrowdDeFiX/cdfx7"},{kind:"MdxPage",name:"cdfx8",route:"/docs/project/CrowdDeFiX/cdfx8"},{kind:"MdxPage",name:"cdfx9",route:"/docs/project/CrowdDeFiX/cdfx9"}]},{kind:"MdxPage",name:"CrowdDeFiX",route:"/docs/project/CrowdDeFiX"},{kind:"Folder",name:"DeCryptX",route:"/docs/project/DeCryptX",children:[{kind:"Meta",data:{dcx1:"Intro",dcx2:"Cranq Setup",dcx3:"Metamask"}},{kind:"MdxPage",name:"dcx1",route:"/docs/project/DeCryptX/dcx1"},{kind:"MdxPage",name:"dcx2",route:"/docs/project/DeCryptX/dcx2"},{kind:"MdxPage",name:"dcx3",route:"/docs/project/DeCryptX/dcx3"}]},{kind:"Meta",data:{xt:"xamtrack",gg:"OctoSpace",CrowdDeFiX:"CrowdDeFiX",DeCryptX:" DeCryptX",mer
1nchat:"Mernchat"}},{kind:"Folder",name:"gg",route:"/docs/project/gg",children:[{kind:"Meta",data:{"-- Backend â© --":{type:"separator",title:"Backend â½"},gg1:"Installation",gg2:"Backend & Middleware",gg3:"MongoDB Registering",gg4:"ERD Model",gg5:"Model 1 - User",gg6:"Auth Routes 1",gg7:"Auth Routes 2",gg8:"Auth Routes 3",gg9:"Auth Routes 4",gg10:"Users Routes 1",gg11:"Users Routes 2",gg12:"Users Routes 3",gg13:"Posts Routes 1",gg14:"Posts Routes 2",gg15:"Posts Routes 3",gg16:"Backend Data adding",gg17:"Data Inserting","-- Frontend â© --":{type:"separator",title:"Frontend â½"},gg18:"Frontend Setup",gg19:"Redux Setup"}},{kind:"MdxPage",name:"gg1",route:"/docs/project/gg/gg1"},{kind:"MdxPage",name:"gg10",route:"/docs/project/gg/gg10"},{kind:"MdxPage",name:"gg11",route:"/docs/project/gg/gg11"},{kind:"MdxPage",name:"gg12",route:"/docs/project/gg/gg12"},{kind:"MdxPage",name:"gg13",route:"/docs/project/gg/gg13"},{kind:"MdxPage",name:"gg14",route:"/docs/project/gg/gg14"},{kind:"MdxPage",name:"gg15",route:"/docs/project/gg/gg15"},{kind:"MdxPage",name:"gg16",route:"/docs/project/gg/gg16"},{kind:"MdxPage",name:"gg17",route:"/docs/project/gg/gg17"},{kind:"MdxPage",name:"gg18",route:"/docs/project/gg/gg18"},{kind:"MdxPage",name:"gg19",route:"/docs/project/gg/gg19"},{kind:"MdxPage",name:"gg2",route:"/docs/project/gg/gg2"},{kind:"MdxPage",name:"gg3",route:"/docs/project/gg/gg3"},{kind:"MdxPage",name:"gg4",route:"/docs/project/gg/gg4"},{kind:"MdxPage",name:"gg5",route:"/docs/project/gg/gg5"},{kind:"MdxPage",name:"gg6",route:"/docs/project/gg/gg6"},{kind:"MdxPage",name:"gg7",route:"/docs/project/gg/gg7"},{kind:"MdxPage",name:"gg8",route:"/docs/project/gg/gg8"},{kind:"MdxPage",name:"gg9",route:"/docs/project/gg/gg9"}]},{kind:"MdxPage",name:"gg",route:"/docs/project/gg"},{kind:"MdxPage",name:"mernchat",route:"/docs/project/mernchat"},{kind:"Folder",name:"xt",route:"/docs/project/xt",children:[{kind:"Meta",data:{xt1:"Introduction",xt2:"create Server with Express JS",xt3:"Routes & Controllers",xt4:"Testing Postman & Thunderbolt",xt5:"MongoDB & Mongoose",xt6:"Secure with DOTENV",xt7:"Create Schema & Model",xt8:"Stored API data",xt9:"Read Data from Database",xt10:"Filtration & Searching Functionality",xt11:"Improve Filter in API ",xt12:"Bugs Handling",xt13:"Test Data Making Script",xt14:"Regex - Advance Search ",xt15:"SORT functionality",xt16:"Return Specific Document Fields",xt17:"Pagination",xt18:"Host REST API"}},{kind:"MdxPage",name:"xt1",route:"/docs/project/xt/xt1"},{kind:"MdxPage",name:"xt10",route:"/docs/project/xt/xt10"},{kind:"MdxPage",name:"xt11",route:"/docs/project/xt/xt11"},{kind:"MdxPage",name:"xt12",route:"/docs/project/xt/xt12"},{kind:"MdxPage",name:"xt13",route:"/docs/project/xt/xt13"},{kind:"MdxPage",name:"xt14",route:"/docs/project/xt/xt14"},{kind:"MdxPage",name:"xt15",route:"/docs/project/xt/xt15"},{kind:"MdxPage",name:"xt16",route:"/docs/project/xt/xt16"},{kind:"MdxPage",name:"xt17",route:"/docs/project/xt/xt17"},{kind:"MdxPage",name:"xt18",route:"/docs/project/xt/xt18"},{kind:"MdxPage",name:"xt2",route:"/docs/project/xt/xt2"},{kind:"MdxPage",name:"xt3",route:"/docs/project/xt/xt3"},{kind:"MdxPage",name:"xt4",route:"/docs/project/xt/xt4"},{kind:"MdxPage",name:"xt5",route:"/docs/project/xt/xt5"},{kind:"MdxPage",name:"xt6",route:"/docs/project/xt/xt6"},{kind:"MdxPage",name:"xt7",route:"/docs/project/xt/xt7"},{kind:"MdxPage",name:"xt8",route:"/docs/project/xt/xt8"},{kind:"MdxPage",name:"xt9",route:"/docs/project/xt/xt9"}]},{kind:"MdxPage",name:"xt",route:"/docs/project/xt"}]},{kind:"MdxPage",name:"project",route:"/docs/project"},{kind:"Folder",name:"react",route:"/docs/react",children:[{kind:"Meta",data:{react1:"Introduction",react2:"Installation",react3:"Folder Structure",react4:"jsx",react5:"Components",react6:"Styling Components",react7:"Props & Props-Types",react8:"Create Movie Website",react9:"Tools & If-Else & ternary",reactallinone:"Interview Questions"}},{kind:"MdxPage",name:"react1",route:"/docs/react/react1"},{kind:"MdxPage",name:"react2",route:"/docs/react/react2"},{kind:"MdxPage",name:"react3",route:"/docs/react/react3"},{kind:"MdxPage",name:"react4",route:"/docs/react/react4"},{kind:"MdxPage",name:"react5",route:"/docs/react/react5"},{kind:"MdxPage",name:"react6",route:"/docs/react/react6"},{kind:"MdxPage",name:"react7",route:"/docs/react/react7"},{kind:"MdxPage",name:"react8",route:"/docs/react/react8"},{kind:"MdxPage",name:"react9",route:"/docs/react/react9"},{kind:"MdxPage",name:"reactallinone",route:"/docs/react/reactallinone"}]},{kind:"MdxPage",name:"react",route:"/docs/react"},{kind:"Folder",name:"reactnative",route:"/docs/reactnative",children:[{kind:"Meta",data:{react1:"Installation",react2:"CreateApp & Debugging",react3:"File Structure",react4:"Hello World App",react5:"Styling",react6:"Hook : Dark & light",react7:"Bug Info - version 63","-- Second App â© --":{type:"separator",title:"Second App â©"},react8:"Multi file components"}},{kind:"MdxPage",name:"react1",route:"/docs/reactnative/react1"},{kind:"MdxPage",name:"react2",route:"/docs/reactnative/react2"},{kind:"MdxPage",name:"react3",route:"/docs/reactnative/react3"},{kind:"MdxPage",name:"react4",route:"/docs/reactnative/react4"},{kind:"MdxPage",name:"react5",route:"/docs/reactnative/react5"},{kind:"MdxPage",name:"react6",route:"/docs/reactnative/react6"},{kind:"MdxPage",name:"react7",route:"/docs/reactnative/react7"},{kind:"MdxPage",name:"react8",route:"/docs/reactnative/react8"}]},{kind:"MdxPage",name:"reactnative",route:"/docs/reactnative"}
1,{kind:"MdxPage",name:"soonmsz",route:"/docs/soonmsz",frontMatter:{headeronly:!0,searchable:!1}},{kind:"Folder",name:"tailwindcss",route:"/docs/tailwindcss",children:[{kind:"Meta",data:{chapter1:"Chapter 1",chapter2:"Chapter 2"}},{kind:"MdxPage",name:"chapter1",route:"/docs/tailwindcss/chapter1"},{kind:"MdxPage",name:"chapter2",route:"/docs/tailwindcss/chapter2"}]},{kind:"MdxPage",name:"tailwindcss",route:"/docs/tailwindcss"}]},{kind:"MdxPage",name:"index",route:"/",frontMatter:{title:"CodeXam â Best Coding Learning Platform"}},{kind:"Folder",name:"playground",route:"/playground",children:[{kind:"MdxPage",name:"js",route:"/playground/js"},{kind:"Meta",data:{js:"JS"}}]},{kind:"Folder",name:"showcase",route:"/showcase",children:[{kind:"Meta",data:{bd1:{title:"Backend Development - Guide 1",type:"page",display:"hidden",theme:{display:"hidden"}}}},{kind:"MdxPage",name:"bd1",route:"/showcase/bd1"}]},{kind:"MdxPage",name:"showcase",route:"/showcase",frontMatter:{title:"Helpful Guide for Beginners"}},{kind:"Folder",name:"xamdev",route:"/xamdev",children:[{kind:"Meta",data:{index:"Introduction","-- Question --":{type:"separator",title:"QNA Template"},question:"Question & Answer Template"}},{kind:"MdxPage",name:"index",route:"/xamdev"},{kind:"Folder",name:"question",route:"/xamdev/question",children:[{kind:"Meta",data:{longquestion:"Long Question Template",mcq:"MCQ Template"}},{kind:"MdxPage",name:"longquestion",route:"/xamdev/question/longquestion"},{kind:"MdxPage",name:"mcq",route:"/xamdev/question/mcq"}]},{kind:"MdxPage",name:"question",route:"/xamdev/question"}]},{kind:"Folder",name:"xamdoc",route:"/xamdoc",children:[{kind:"Folder",name:"CXBS",route:"/xamdoc/CXBS",children:[{kind:"Meta",data:{ra:"\uD83C\uDFDB REST Architecture",rk:"\uD83D\uDD11 REST Key",crp:"\uD83D\uDCDD Client Requirements",fr:"\uD83D\uDCDA Resource",ideig:"\uD83D\uDEE0 Installation Guide",dbst:" \uD83D\uDDC4 Database Structure",setup:"âï¸ Setup",uapi:"\uD83D\uDCE1 User API"}},{kind:"MdxPage",name:"crp",route:"/xamdoc/CXBS/crp"},{kind:"MdxPage",name:"dbst",route:"/xamdoc/CXBS/dbst"},{kind:"MdxPage",name:"fr",route:"/xamdoc/CXBS/fr"},{kind:"MdxPage",name:"ideig",route:"/xamdoc/CXBS/ideig"},{kind:"MdxPage",name:"ra",route:"/xamdoc/CXBS/ra"},{kind:"MdxPage",name:"rk",route:"/xamdoc/CXBS/rk"},{kind:"MdxPage",name:"setup",route:"/xamdoc/CXBS/setup"},{kind:"MdxPage",name:"uapi",route:"/xamdoc/CXBS/uapi"}]},{kind:"MdxPage",name:"CXBS",route:"/xamdoc/CXBS"},{kind:"Meta",data:{CXBS:"Backend"}}]},{kind:"MdxPage",name:"xamdoc",route:"/xamdoc",frontMatter:{title:"Developer Space CodeXam"}}],flexsearch:{codeblocks:!1},title:"Node1"},pageNextRoute:"/docs/node/node1",nextraLayout:o.ZP,themeConfig:s.Z};function u(e){let t=Object.assign({h2:"h2",p:"p",ul:"ul",li:"li",strong:"strong",blockquote:"blockquote",em:"em",a:"a",code:"code",h3:"h3",table:"table",thead:"thead",tr:"tr",th:"th",tbody:"tbody",td:"td"},(0,r.ah)(),e.components);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"flex nx-justify-between",children:(0,n.jsx)("h1",{children:(0,n.jsx)("span",{className:"p-0 sm:p-0 headingGradientTag font-bold text-transparent sm:text-8xl text-[50px] ",children:"Introduction to Node js and the Course "})})}),"\n",(0,n.jsx)("div",{className:"mt-5"}),"\n",(0,n.jsx)(c.Z,{type:"info",emoji:"\uD83C\uDF89",title:"Read This on Github",message:"This article is available on Github. You can read it there and contribute to it.",links:[{link:"https://github.com/Subham-Maity/node-js-full-stack-tutorial",linkText:"Github Link"},{link:"https://github.com/Subham-Maity/node-js-full-stack-tutorial/issues/new",linkText:"Any Issue ?"}]}),"\n",(0,n.jsx)(t.h2,{id:"-what-is-nodejs",children:"â What is Node.js?"}),"\n",(0,n.jsx)("div",{className:"mt-3"}),"\n",(0,n.jsxs)("div",{className:"cardTexture5",children:[(0,n.jsx)("h1",{style:{padding:"8px"},className:"mb-8 text-center font-bold text-transparent sm:text-4xl text-[25px] tex bg-clip-text bg-[radial-gradient(ellipse_at_top_left,_var(--tw-gradient-stops))] from-sky-700 via-cyan-500 to-neutral-300",align:"middle",children:"Explain"}),(0,n.jsxs)("h11",{className:"textStyle1 ",children:[(0,n.jsx)("p",{align:"center",children:(0,n.jsx)("img",{style:{position:"relative",opacity:1,borderRadius:"10px",overflow:"hidden",marginTop:"20px",marginBottom:"20px"},src:"https://miro.medium.com/v2/resize:fit:1000/0*K-3utN-vcdxKDZAH.gif"})}),(0,n.jsx)(i.UW,{type:"error",emoji:"\uD83D\uDEA8",children:(0,n.jsx)(t.p,{children:"In this article, for sure you will get many boring theory but trust me day by day you will fall in love with Node.js and you will be able to understand the theory behind it."})}),(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.strong,{children:"Node is not a Language."})}),"\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.strong,{children:"This is a Server Environment."})}),"\n",(0,n.jsx)(t.li,{children:(0,n.jsx)(t.strong,{children:"Node.js can connect with the database."})}),"\n"]}),(0,n.jsxs)(t.blockquote,{children:["\n",(0,n.jsx)(t.p,{children:"Node.js can connect with the database because it is a server-side environment that can run JavaScript code and interact with various databases using drivers or modules. JavaScript, on the other hand, is mainly a client-side language that runs in the browser and cannot directly access the database for security reasons. To connect to the database from JavaScript, you need to use a backend service that can handle the database queries and send the results back to the browser."}),"\n"]}),(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["Code and syntax are very similar to ",(0,n.jsx)(t.em,{children:"JavaScript"})," But not exactly the same."]}),"\n",(0,n.jsx)(t.li,{children:"Node.js is free and open-source."}),"\n",(0,n.jsxs)(t.li,{children:["Node.js is a ",(0,n.jsx)(t.em,{children:"JavaScript runtime"})," built on Chrome's V8 JavaScript engine."]}),"\n"]}),(0,n.jsxs)(t.blockquote,{children:["\n",(0,n.jsx)(t.p,{children:"Chrome's V8 JavaScript engine is an open-source JavaScript engine developed by the Google Chrome team. It is written in C++ and is used to execute JavaScript code in web browsers, Node.js, and other applications. V8 compiles JavaScript code into machine code directly, making it very fast and efficie
1nt. It also includes features such as just-in-time (JIT) compilation, garbage collection, and support for modern JavaScript features."}),"\n"]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"-why-do-we-use-node",children:"â Why do we use Node?"}),"\n",(0,n.jsx)("div",{className:"mt-3"}),"\n",(0,n.jsxs)("div",{className:"cardTexture5",children:[(0,n.jsx)("h1",{style:{padding:"8px"},className:"mb-8 text-center font-bold text-transparent sm:text-4xl text-[25px] tex bg-clip-text bg-[radial-gradient(ellipse_at_top_left,_var(--tw-gradient-stops))] from-sky-700 via-cyan-500 to-neutral-300",align:"middle",children:"Explain"}),(0,n.jsx)("h11",{className:"textStyle1 ",children:(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["Node.js is commonly used for building ",(0,n.jsx)(t.strong,{children:"APIs."})]}),"\n",(0,n.jsxs)(t.li,{children:["Node.js allows for ",(0,n.jsx)(t.strong,{children:"seamless connection of databases"})," to web and mobile applications."]}),"\n",(0,n.jsxs)(t.li,{children:["Node.js is ",(0,n.jsx)(t.strong,{children:"easy to understand"})," for those who know JavaScript."]}),"\n",(0,n.jsxs)(t.li,{children:["Node.js is ",(0,n.jsx)(t.strong,{children:"incredibly fast for building APIs."})]}),"\n",(0,n.jsxs)(t.li,{children:["Node.js and JavaScript can be used for ",(0,n.jsx)(t.strong,{children:"full-stack development."})]}),"\n"]})})]}),"\n",(0,n.jsx)(t.h2,{id:"-history-of-nodejs",children:"â History of Node.js"}),"\n",(0,n.jsx)("div",{className:"mt-3"}),"\n",(0,n.jsxs)("div",{className:"cardTexture5",children:[(0,n.jsx)("h1",{style:{padding:"8px"},className:"mb-8 text-center font-bold text-transparent sm:text-4xl text-[25px] tex bg-clip-text bg-[radial-gradient(ellipse_at_top_left,_var(--tw-gradient-stops))] from-sky-700 via-cyan-500 to-neutral-300",align:"middle",children:"Explain"}),(0,n.jsxs)("h11",{className:"textStyle1 ",children:[(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"First Release:"})," Node was first released on May 27, 2009 by ",(0,n.jsx)(t.a,{href:"https://en.wikipedia.org/wiki/Ryan_Dahl",children:"Ryan Dahl"}),", who was inspired by the event-driven and non-blocking I/O model of web browsers."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Current Version:"})," The latest stable version of Node is 17.2.0, which was released on December 7, 2021. Node follows a semver (semantic versioning) scheme and releases a new major version every six months, with even-numbered versions receiving long-term support (LTS)."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Written in:"})," Node is mainly written in C, C++, and JavaScript. C and C++ are used to implement the core functionality and bindings to the V8 JavaScript engine, which executes the JavaScript code. JavaScript is used to write the standard library and most of the user-facing modules of Node."]}),"\n"]}),(0,n.jsxs)(t.p,{children:["For more information, you can visit the ",(0,n.jsx)(t.a,{href:"https://nodejs.org/en/",children:"Node official website"}),", the ",(0,n.jsx)(t.a,{href:"https://github.com/nodejs/node",children:"Node GitHub repository"}),", or the ",(0,n.jsx)(t.a,{href:"https://nodejs.org/en/docs/",children:"Node documentation"}),"."]})]})]}),"\n",(0,n.jsx)(t.h2,{id:"-is-javascript-and-nodejs-same",children:"â Is javascript and Node.js same?"}),"\n",(0,n.jsx)("div",{className:"mt-3"}),"\n",(0,n.jsxs)("div",{className:"cardTexture5",children:[(0,n.jsx)("h1",{style:{padding:"8px"},className:"mb-8 text-center font-bold text-transparent sm:text-4xl text-[25px] tex bg-clip-text bg-[radial-gradient(ellipse_at_top_left,_var(--tw-gradient-stops))] from-sky-700 via-cyan-500 to-neutral-300",align:"middle",children:"Explain"}),(0,n.jsxs)("h11",{className:"textStyle1 ",children:[(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.strong,{children:"JavaScript"})," and ",(0,n.jsx)(t.strong,{children:"Node.js"})," are related but not the same. Here are some differences and similarities between them:"]}),(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"JavaScript and Node.js code syntax is same:"})," Both JavaScript and Node.js use the same syntax, which is based on the ECMAScript (ES) standard. This means that the basic rules and structures of writing code are the same for both."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"If you know JavaScript you can easily understand Node:"})," Knowing JavaScript can help you learn Node.js faster, as you are already fam
1iliar with the syntax and some of the built-in objects and methods. However, you still need to learn the specific features and modules of Node.js, such as the event loop, streams, buffers, etc."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"But both are not exactly the same:"})," JavaScript and Node.js are different in terms of their environments, capabilities, and purposes. JavaScript is a scripting language that can run on any platform that supports a JavaScript engine, such as web browsers, mobile devices, etc. Node.js is a software platform that runs JavaScript on the server-side, using the V8 engine."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"You can not connect JavaScript to DB:"})," JavaScript by itself cannot connect to a database, as it does not have any built-in modules or libraries for database access. You need to use a third-party framework or library, such as jQuery, Angular, React, etc., to communicate with a database using JavaScript."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Node can connect with DB:"})," Node.js can connect to a database, as it has many modules and libraries that support various types of databases, such as MongoDB, MySQL, PostgreSQL, etc. You can use the native Node.js modules, such as ",(0,n.jsx)(t.code,{children:"mysql"})," or ",(0,n.jsx)(t.code,{children:"mongodb"}),", or use a third-party framework or library, such as ",(0,n.jsx)(t.code,{children:"mongoose"})," or ",(0,n.jsx)(t.code,{children:"sequelize"}),", to connect to a database using Node.js."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"Node.js runs on the server-side:"})," Node.js is designed to run on the server-side, which means that it can handle requests from clients, process data, perform computations, and send responses back to the clients. Node.js can also act as a web server, using modules such as ",(0,n.jsx)(t.code,{children:"http"})," or ",(0,n.jsx)(t.code,{children:"express"}),"."]}),"\n",(0,n.jsxs)(t.li,{children:[(0,n.jsx)(t.strong,{children:"JavaScript runs on the browser:"})," JavaScript is mainly used to run on the browser, which means that it can manipulate the HTML and CSS elements of a web page, add interactivity, validate user input, and communicate with the server using AJAX. JavaScript can also run on other platforms, such as mobile devices, using frameworks such as React Native or Ionic."]}),"\n"]}),(0,n.jsx)(t.h3,{id:"conclusion",children:"Conclusion"}),(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{children:"Key Point"}),(0,n.jsx)(t.th,{children:"JavaScript"}),(0,n.jsx)(t.th,{children:"Node.js"})]})}),(0,n.jsxs)(t.tbody,{children:[(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Definition"}),(0,n.jsx)(t.td,{children:"A scripting language that can run on any platform that supports a JavaScript engine."}),(0,n.jsx)(t.td,{children:"A software platform that runs JavaScript on the server-side, using the V8 engine."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Database Connection"}),(0,n.jsx)(t.td,{children:"Cannot connect to a database by itself, needs a third-party framework or library."}),(0,n.jsx)(t.td,{children:"Can connect to a database, has many modules and libraries that support various types of databases."})]}),(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{children:"Execution Environment"}),(0,n.jsx)(t.td,{children:"Mainly runs on the browser, can also run on other platforms using frameworks."}),(0,n.jsx)(t.td,{children:"Runs on the server-side, can also act as a web server using modules."})]})]})]})]})]})]})}t.default=(0,d.j)(l)}},function(e){e.O(0,[1791,3159,4291,8302,9774,2888,179],function(){return e(e.s=85312)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.