Build a Greeting Bot - Step 7

Tell us what’s happening:

I think my code is correct. But it shows error. Can anyone help me to fix this?

Your code so far


// User Editable Region

let botIntroduction = "My name is " + bot + ".";
console.log(botIntroduction)

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 7
https://www.freecodecamp.org/learn/full-stack-developer/workshop-greeting-bot/step-7

This code works on my end. I would reset the code to make sure you don’t have any stray changes and then copy-paste this solution in again. If that doesn’t work, try disabling all browser extensions.

1 Like

Thanks bro, the code worked . But I don’t understand my problem, why my code wasn’t working.

probably because you were missing the rest of the code that should be in the editor

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.