Build a Greeting Bot - Step 4

Tell us what’s happening:

I’m trying to attach a string to a variable, but I can’t seem to get it to work.

Your code so far

console.log("Hi there!");
console.log("I am excited to talk to you.");
let bot;

// User Editable Region

let bot; 
let bot variableName = "teacherBot";

// 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/143.0.0.0 Safari/537.36

Challenge Information:

Build a Greeting Bot - Step 4

let declares a variable, and you can only do that once.

Welcome to the forum @potterjohnny127 !

Also please understand that bot is the variable name you are asked to assign a value to, not variableName, which was used in the syntax example.

You can always reset this step to restore the original code and try again by clicking the ‘Reset’ button.

if you did not notice, you have let bot twice, that is already an error

are you trying to have a space in the variable name or something like that? this is also a syntax error