Tell us what’s happening:
Describe your issue in detail here.
Hello,
I tried following the steps to this challenge however I can’t see to clear the console log from my browser console to complete the third step.
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, one for each test of this challenge. The browser console should only print the variable once becuase you cleared it first.
// 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, one for each test of this challenge. The browser console should only print the variable once becuase you cleared it first.
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Challenge: Understanding the Differences between the freeCodeCamp and Browser Console
Link to the challenge: