Coding Fun Node Js How to print a Hello World with node js

How to print a Hello World with node js





# How to print a simple greeting to an audience (Hello World!) in the terminal with node.js in Visual Studio Code

## Open the terminal

`CTRL`+ “ ` “

## Create a new js file called index

“`bash

code index.js

“`

## Store your greeting string and your audience string in variables

“`js

var greeting = “Hello”

var audience = “World”

“`

## Use a logging function and string interpolation

“`js

console

.log( // The backtick starts the string…

Tags: , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *