Understanding the Differences between the freeCodeCamp and Browser Console

Understanding the Differences between the freeCodeCamp and Browser Console
0.0 0

#1

I’ve been trying his problem for a quite long time now. I’m getting “invalid regexp group”. Can anyone give me a hint? Should this be happening?


// Open your browser console
let outputTwo = "This will print to the browser console 2 times";
// Use console.log() to print the outputTwo variable
console.log(outputTwo);

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
console.clear();

// Use console.log() to print the outputOne variable
console.log(outputOne);

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/debugging/understanding-the-differences-between-the-freecodecamp-and-browser-console


#2

I can’t reproduce that error. Are you by any chance using Edge or Safari?

Bugs should always be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.


#3

Same problem here… :wink:


#4

There is an issue here regarding this problem.