Back to Freecodecamp

Step 2

curriculum/challenges/english/blocks/workshop-mathbot/66ea7e7399244c6d4b6052a1.md

latest903 B
Original Source

--description--

The next part of the workshop will review how the Math.random() method works.

Start by adding another console.log() that logs the string "The Math.random() method returns a pseudo random number greater than or equal to 0 and less than 1." to the console.

--hints--

You should have a console.log() that logs the string "The Math.random() method returns a pseudo random number greater than or equal to 0 and less than 1.".

js
assert.match(code, /console\.log\((`|'|")\s*The\s+Math\.random\(\)\s+method\s+returns\s+a\s+pseudo\s+random\s+number\s+greater\s+than\s+or\s+equal\s+to\s+0\s+and\s+less\s+than\s+1\.\1\)/);

--seed--

--seed-contents--

js
const botName = "MathBot";
const greeting = `Hi there! My name is ${botName} and I am here to teach you about the Math object!`;

console.log(greeting);
--fcc-editable-region--

--fcc-editable-region--