So I have this code and would like to know how I could go ahead to put my javascript var into this string. I cannot seem to make a working code for myself.
For the image
Try using ES6 new feature called Template literals (using quote). It is more cleaner and simpler.
ES6
quote
var picture = {'value':'test-src-location'}; var text = ``; console.log(text);