I have a variable defined like this
var selectStatement = `
SELECT role FROM abc INNER JOIN xyz ON (abc.name = 'Service list')
`
Now what I want to do is instead of using hardcoded 'Service list' I want to read a variable value something like
var myvar = "operation"
var selectStatement = `
SELECT role FROM abc INNER JOIN xyz ON (abc.name = $myvar)
`
I know its very simple if there was "string"
instead of `string`
.
How can I achieve this. What is the difference between "string"
and `string`
?