Build a Mathbot - Step 3

Tell us what’s happening:

I input the math.random method but it’s not generating any pseudo number, its not generating any number and the code fails to pass

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


// User Editable Region

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

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


// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36

Challenge Information:

Build a Mathbot - Step 3
https://www.freecodecamp.org/learn/full-stack-developer/workshop-mathbot/step-3

The syntax for your variable assignment to randomNum is incorrect. Once you fix that, your log will return a value.

+1 to previous answer. Your are generating random number but is it assigned to randomNum variable?