JavaScript Node.js Basics Building a Command Line Application Making a GET Request with https

Omar Patel
Omar Patel
16,026 Points

Can someone tell me what I'm typing wrong?

function printMessage (username, badgeCount, points){ var message = '${username} has ${badgeCount} total badge(s) and ${points} points in JavaScript'; console.log(message); }

printMessage("b", 100, 300);

this gives me:

var message = '${username} has ${badgeCount} total badge(s) and ${points} points in JavaScript'; console.log(message); } ‚Äč printMessage("b", 100, 300); ${username} has ${badgeCount} total badge(s) and ${points} points in JavaScript

2 Answers

You are using single quotes instead of backticks (to the left of the 1 key on the keyboard) to enclose your message . It should be:

var message = `${username} has ${badgeCount} total badge(s) and ${points} points in JavaScript`

Thank you! BTW, it's on the left of the Z on my keyboard (in case anyone else is having trouble finding it).