NA +91-8727899942 thecoderjob@gmail.com

CHAPTER - 7

Writing first Node Js program with express framework.

This is a basic example, but it demonstrates the fundamental structure of a Node.js application.

Steps : 

 - Install Node Js

 - Create a New File ( app.js )

 - Run the Program by command ( node app.js )

Here's is the Code !!

const express = require('express')
const app = express()

app.get('/',(req,res)=>{
    res.send('Hello world')
})
app.listen(3000,()=>{
   console.log('Server started')
})

Chapter 6

What is the loops in javascript

Previous chapter

Chapter 8

Understanding modules and require in node Js

Next chapter

Get In Touch

NA

thecoderjob@gmail.com

+91-8727899942

Popular Links

© www.thecoderjob.com. All Rights Reserved.               Designed by HTML Codex