'Named variable appearing as string

const sayHi = (name) => {
console.log('Hello there ${name}')
}

module.exports = sayHi

Here is what it looks like

In the console.log function I am calling the variable name but it is picking it as a string. I am learning nodejs and i dont know why i am getting this problem. ps: There is a mistake with the screenshot in terms of the variable name but that is not the problem.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source