Hello, I know this is a silly question, but how do i do this exercise where i should use the browser console. Should i open the console, paste this in the console let output = "Get this to log once in the freeCodeCamp console and twice in the browser console";
, press enter and then do console.log(output)?
You’ll want the console open so you can see the messages printed to the console, but to print things to the console you use console.log()
in your JS code.