Also note that the freecodecamp or fcc editor passes your code only if it complies with the instructions(mostly).
So also be sure to follow the instructions given in the side.
When you use built in methods never put whitespace after “.” so it would be console.log()
Also, keep in mind that FreeCodeCamp editor says that you passed tests mostly if it matches to their instructions.