// Variables in JavaScript are declared with let or const. const is // for values that won't change. const prefix = 'Hello, '; let party = 'World!'; let greeting = prefix + party; // You can print an expression to the console by using console.log() console.log(greeting); // JavaScript supports string interpolation in template strings. const x = 2048; const y = 128; let message = `${x}*${y} = ${x*y}`; console.log(message); // JavaScript strings are objects. The JavaScript string class offers a number // of useful methods. let A = greeting.split(" "); console.log("The second part of the greeting string is " + A[1]);