Answers for "hello world nodejs"

5

javascript hello world

I would do something like this:

<script>
  alert("Hello World!");
</script>
Posted by: Guest on November-19-2020
49

express hello world

//to run : node filename.js
const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => res.send('Hello World!'))

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))

//visit localhost:3000
// assuming you have done 1) npm init 2) npm install express
Posted by: Guest on July-17-2020
4

node js server

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

app.get('/', (req, res) => res.send('Hello World!'))

app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))
Posted by: Guest on April-01-2020
0

how to create a javascript hello world program with node.js

console.log('Hello, world');// You can use apostrophes, quotation marks or tildees which are `s
Posted by: Guest on August-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language