Debugging: understanding the difference between FCC & browser console

Hi
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

console.log(outputTwo);
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
console.clear(outputOne);

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

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

2 Likes

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.

2 Likes

Thanks,
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.