This may be basic question, but why am I seeing escape notation
when I use my console to log a string with spaces in it?
When I console log the same string variable in VS Code, it shows up as you would expect - but not when typing directly. Why is this happening? How do I fix this issue? Any thoughts would be much appreciated.
I’m really enjoying the lessons so far.
Could you share your code so we can take a deeper look why this is occurring
Oh, Sorry about that. Here’s what I’m getting:
Its a great question, im unsure the exact reason but to fix it you can just write console.log(another) directly in the console and that will remove all the extra formatting because when we display textual content we usually call this function not reference the variable directly