Q:

NodeJS not showing variables

I'm starting with NodeJS with a this script:
const http = require('http');
const port = 3000;

const requestHandler = (request, response) => {
    console.log(request.url);
    response.end('Hello bla bla bla');

}

const server = http.createServer(requestHandler);

server.listen(port, (err) => {
        if (err) {
        return console.log('Algo ha pasado', err);
        }

    console.log('server is listening on ${port}');
    })

The output should be 

server is listening on 3000

but instead the output is 

server is listening on ${port}

The weird thing is that the same code in Mac actually works.

A:

To replace variables like you wanted you need to use back quote instead of simple quote
console.log(`server is listening on ${port}`);

