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
Assuming your picture.value is not empty.
picture.value
var text = '';
Example: https://jsfiddle.net/no293etL/