Conditionals and Control flow: Is this a bug or am I missing something

Hi all! Hoping a second set of eyes can help me see what Im missing. In working thru the magic 8 ball project, and in the early stages im not getting the out put im looking for. Ive tried rewriting, following the project video, and completely resetting my workspace and browser. Does anyone see what I may be missing here? Thanks in advance :slight_smile:

let userName = 'Schy'; userName ? console.log('Hello, ${userName}!') : console.log('Hello!'); let userQuestion = 'Will I find happiness?'; console.log('Great question, ${userName}! You asked: ${userQuestion}.');

Hey! When you use this ${expression} you need to combine it with oblique single quote not with upright :wink:

let userName = 'Schy'; userName ? console.log(`Hello, ${userName}!`) : console.log('Hello!');
3 Likes

Oh my goodness! Thank you so much. Such a subtle error, and it was driving me mad. Cheers!