'${fName}'
is treated as a regular string. You’re supposed to use string templates:
document.write(`${fName}`);
0
solved ES6 String Substitution does not work
'${fName}'
is treated as a regular string. You’re supposed to use string templates:
document.write(`${fName}`);
0
solved ES6 String Substitution does not work