Hi. This seems quite simple, but I’m not understanding what this is supposed to do? Technically I solved the challenge, but nothing logged to the FCC console OR my browser console more than once. I’d just like to know if there’s a different way I’m supposed to be running this.
I’m on chrome, btw.
// Open your browser console
let outputTwo = "This will print to the browser console 2 times";
// Use console.log() to print the outputTwo variable
let outputOne = "Try to get this to log only once to the browser console";
// Use console.clear() in the next line to print the outputOne only once
// Use console.log() to print the outputOne variable
Link to the challenge:
Your console should look like this:
Ahhhhh, the second instance was the “undefined” that follows, not an actual second sentence.
In the era of IE, most of the programmer debug using alert. But now a day’s many methods and tools added into browsers. Especially with firebug and chrome dev tools, lots of methods have been introduced.
Various methods of console API: assert,clear,count,debug,dir,dirxml,error,group,groupCollapsed,groupEnd,info,log,profile,profileEnd,time,timeEnd,timeStamp,trace,warn
please can you explain better …am still confused.