Tell us what’s happening:
I have succeeded with this challenge and my code is the same as the solution, but it only prints once in the freeCodeCamp console. I’m just wondering why? It still says I passed the challenge, just a bit confused…Thanks!
Your code so far
// Open your browser console. let output = "Get this to log once in the browser console and twice in the freeCodeCamp console"; // Use console.clear() on the next line to clear the browser console. console.clear(); // Use console.log() to print the output variable. console.log(output); // Check the two consoles to see the difference. The freeCodeCamp console should have printed the variable twice, once for each test of this challenge. The browser console should only print the variable once because you cleared it first.
Your browser information:
User Agent is:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0.
Challenge: Understanding the Differences between the freeCodeCamp and Browser Console
Link to the challenge: