Files

913 B

id, title, challengeType, dashedName
id title challengeType dashedName
660ef5105b8ba095307a0e50 Step 7 1 step-7

--description--

Now log your character variable to the console again. You should see the string "Hello", then the string "World", in the console.

--hints--

You should use console.log a second time.

assert.lengthOf(__helpers.removeJSComments(code).match(/console\.log/g), 2);

You should log character to the console a second time.

assert.lengthOf(__helpers.removeJSComments(code).match(/console\.log\(\s*character\s*\)/g), 2);

Your new console.log() should come after your reassignment.

const reassign = __helpers.removeJSComments(code).split(/\n+/).findIndex(l => l.match(/character\s+=\s+("|')World\1/));

--seed--

--seed-contents--

--fcc-editable-region--
let character = 'Hello';
console.log(character);
character = "World";

--fcc-editable-region--