Understanding the Differences between the freeCodeCamp and Browser Console: need help

So I am able to open up the console and type in the requirements but when I try to run the tests all I accomplish is " You should use console.clear() to clear the browser console" and none of the other checks pass.

I’m very confused because i think I’m doing everything the right way.

Edit you post and add your code here don't remove the backticks

Your browser information:

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

Challenge: Understanding the Differences between the freeCodeCamp and Browser Console

Link to the challenge:

You deleted all of the code from this post, so it’s really hard for us to say what’s happening.

the only code is "let output = “Get this to show once in the freeCodeCamp console and not at all in the browser console”;

So you aren’t using console.log or console.clear? That’s probably the problem.

I did both of those in the browser console & in the freecodecamp console & nothing happened either time.

What is your code with console.log and console.clear? The challenge won’t pass without those lines.

You have to write it in the code not in the real console

1 Like

Thank you for your patience with helping me. I tried originally console.log and then underneath console.clear.

What fixed the problem was console.log(output) followed by console.clear. I forgot to include the (output) portion.

Thanks very much, I apologize for wasting your time.

You didn’t waste anyone’s time! We’re here to help. Confusion is part of learning.

1 Like

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