Back to Freecodecamp

Step 1

curriculum/challenges/english/blocks/workshop-greeting-bot/66ad8294a0ad902f1b31b612.md

latest970 B
Original Source

--description--

In this workshop you will learn how to work with JavaScript fundamentals by building a greeting bot.

In this first step, you will want to output a message to the console from the greeting bot.

Remember that you learned about console.log() and strings in previous lessons.

Here is a reminder of how to use console.log() with strings:

js
console.log("Hello, World!");

Add a console.log() statement that outputs the string "Hi there!" to the console. Don't forget your quotes around the message!

--hints--

You should have a console.log() statement in your code.

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

Your console statement should have the message "Hi there!". Don't forget the quotes.

js
assert.match(__helpers.removeJSComments(code), /console\.log\((['"])Hi\s+there!\1\);?/);

--seed--

--seed-contents--

js
--fcc-editable-region--

--fcc-editable-region--