Debugging - Understanding the Differences between the freeCodeCamp and Browser Console

I can’t pass this! i Don’t understand

Your code so far

let output = "Get this to show once in the freeCodeCamp console and not at all in the browser console";
console.log(output)
console.clear(output)

Your browser information:

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

Challenge: Debugging - Understanding the Differences between the freeCodeCamp and Browser Console

Link to the challenge:

Can you be more specific about what in the instructions is confusing? In your own words?

I am typing out the variable, and then console logging it in both consoles. I am then using console clear on the browser console and it is removing the logs. I am looking at both consoles while doing this. I dont know what else I need to do to finish the challenge.

console.clear() does not take any arguments. So you should not be passing it anything.

1 Like

holy shiz it worked
and it actually makes sense

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.