Console.log(output) in browser's console

Tell us what’s happening:

I’m trying to run console.log(output) in a browser as described in lesson but getting an error. Am I doing something wrong?

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);

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36

Challenge: Understanding the Differences between the freeCodeCamp and Browser Console

Link to the challenge:

Oh wait. I get it. It works through FCC console and then clear the console. Sorry guys. My bad.

What you type in the fcc editor is valid only for the fcc console and not the browser console (in most cases)

Works now. Thx

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