I created 2 const
; name and age but when I try to print those const
using dollar sign it didn't show up the result I want. Here's the code
const name = 'Tim';
const age = 19;
console.log('My name is ' + name + ' I am ' + age + ' Years old');
const into = 'My name is ${name} I am ${age} Years old';
console.log(into);
here's the result
My name is Tim I am 19 Years old practice1.js:4:9 My name is ${name} I am ${age} Years old practice1.js:7:9