Hi,
I cannot seems to make ${ … … } work on atom.
Does anybody faces the same problem too ?
Here are my codes, please let me know if something is wrong.
Practice Exercise Q22var price = 50;
var text = prompt(“What is your age?”);
var age = parseInt(text);
if (age < 12 || age > 67) {
console.log(‘You have to pay ${price} * 0.5 Euro.’);
}
else {
console.log(‘You have to pay ${price} Euro.’);
}
</script>
</body>