Answer the question
In order to leave comments, you need to log in
How to 'convert' a string to a string with back quotes?
All the best!
A little strange question :)
Let's say we have a variable let a = 'my name is string'
, is it possible to convert it later into the back quotes format for its further use with all the sugar `my name is ${name}`
?
To be precise, I have a file that I read with a node, and in which I need to make replacements. It would be cool to insert ${name} into the text of the file instead of replace .
I hope I can explain what I mean :)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question