Debugging: understanding the difference between FCC & browser console

Debugging: understanding the difference between FCC & browser console
0

#1

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

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.


#3

Thanks,
i knew it was something simple. must need more cofee