Answers for "javascript var in quotes"

0

javascript var in quotes

const poem = "The Wide Ocean";
const author = "Pablo Neruda";

const favePoem = `My favorite poem is ${poem} by ${author}.`;
Posted by: Guest on May-18-2020
0

javascript var in quotes

var myArray = [123, 15, 187, 32];

myArray.forEach(function (value, i) {
    console.log('%d: %s', i, value);
});

// Outputs:
// 0: 123
// 1: 15
// 2: 187
// 3: 32
Posted by: Guest on May-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language