Build a Mathbot - Step 11

Tell us what’s happening:

Hi, this doesn’t want to pass for some reason, can’t figure out why…

Your code so far

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);

console.log("The Math.random() method returns a pseudo random number between 0 and less than 1.");

const randomNum = Math.random();
console.log(randomNum);

console.log("Now, generate a random number between two values.");

const min = 1;
const max = 100;

const randomNum2 = Math.random() * (max - min) + min;
console.log(randomNum2);

console.log("The Math.floor() method rounds the value down to the nearest whole integer.");

const numRoundedDown = Math.floor(6.7);
console.log(numRoundedDown);

console.log("The Math.ceil() method rounds the value up to the nearest whole integer.");

const numRoundedUp = Math.ceil(3.2);
console.log(numRoundedUp);

console.log("The Math.round() method rounds the value to the nearest whole integer.");


// User Editable Region

let numRounded = Math.round(2.7);
console.log (numRounded);

let numRounded2 = Math.round(11.2);
console.log(numRounded2);

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Build a Mathbot - Step 11

Hi there,
You’re almost there!
You just have an extra space between console and the parenthesis in the first.console.log.Just remove the space, Then everything will run perfectly :white_check_mark:

1 Like