Build a Greeting Bot - Step 9

Tell us what’s happening:

There is absolutely no problem in my code, but the freeCodeCamp code editor is GLITCHED. The javascript is not even recognizing me assign variables to code. Help??

Your code so far

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

let botLocation = "the universe";

console.log("Allow me to introduce myself.");

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

const botLocationSentence = "I live in " + botLocation + ".";
console.log(botLocationSentence);


// User Editable Region

let bot = "professorBot";

// 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/141.0.0.0 Safari/537.36 Edg/141.0.0.0

Challenge Information:

Build a Greeting Bot - Step 9

You have a syntax error.

Look carefully at the example code on how to reassign a let variable.

let name = "John";
console.log(name); // "John"

name = "Jane";
console.log(name); // "Jane"

declaring the same variable twice is an error, the editor is right