Differences between the freeCodeCamp and Browser Console

Tell us what’s happening:

Your code so far


// Open your browser console
let outputTwo = "This will print to the browser console 2 times";
    console.log(outputTwo);
// 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
console.log(outputOne);

console.clear(outputOne);


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



Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/understanding-the-differences-between-the-freecodecamp-and-browser-console

console.clear() doesn’t take an argument.