Consider this code:
var age = 3; console.log(\"I\'m \" + age + \" years old!\");
Are there any other ways to insert the value of a variabl
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