Debugging: understanding the difference between FCC & browser console

I thought this was pretty straight forward but i guess not. i have tried several changes but i must be missing something.
my code:

// Open your browser console
let outputTwo = "This will print to the browser console 2 times";
// Use console.log() to print the outputTwo variable

let outputOne = "Try to get this to log only once to the browser console";
// Use console.clear() in the next line to print the outputOne only once

// Use console.log() to print the outputOne variable

running test returns: Use console.clear() to modify your output so that outputOne variable only outputs once.


It tells you exactly what is wrong. You wrote console.clear(outputOne). It tells you to write console.clear(). console.clear does not take an argument.


i knew it was something simple. must need more cofee

Never? Or just in this case?

Never what? Not sure what you are asking.

Oh sorry , I was referring at the console.clear(), you said it does not take an argument.

That is correct. It does not take any arguments.

1 Like

Thank you for the quick answer.