Files

1.3 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
660ef19b95d3308e7dd31bb6 Step 5 1 step-5

--description--

The console allows you to print and view JavaScript output. You can send information to the console using console.log(). For example, this code will print "Naomi" to the console:

let developer = "Naomi";
console.log(developer);

The code above accesses the developer variable with its name in the console.log(). Note that the value between the parentheses is the value that will be printed.

Print the value of the character variable to the console. Then, click the "Console" button to view the JavaScript console.

--hints--

You should access the console in your code.

assert.match(__helpers.removeJSComments(code), /console/);

You should access the log property of the console.

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

You should use parentheses to call the .log() method.

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

You should print the character variable to the console.

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

--seed--

--seed-contents--

--fcc-editable-region--
let character = 'Hello';

--fcc-editable-region--