SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to interpolate in console.log output, then just
console.log
console.log("Eruption 1: %s", eruption1); ^^
Here, %s is what is called a "format specifier". console.log has this sort of interpolation support built-in.
%s