# Why am I getting escape notation when I use my console?

**URL:** <https://forum.codewithmosh.com/t/why-am-i-getting-escape-notation-when-i-use-my-console/21484>\
**Category:** JavaScript\
**Created:** [July 14, 2023, 1:39am UTC](https://forum.codewithmosh.com/t/why-am-i-getting-escape-notation-when-i-use-my-console/21484 "2023-07-14T01:39:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![donnie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/donnie/32/6556_2.png) [@donnie](https://forum.codewithmosh.com/u/donnie)\
**Post date:** [July 14, 2023, 1:39am UTC](https://forum.codewithmosh.com/t/why-am-i-getting-escape-notation-when-i-use-my-console/21484/1 "2023-07-14T01:39:21Z")

</div>

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.

 ![escape-notation-code-issue](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/e2ecc108d699b8f3c33524c7fc957bcb9f9dde85.jpeg)

---

<div class="post-metadata">

**Author:** ![lucidlear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/lucidlear/32/5477_2.png) [@lucidlear](https://forum.codewithmosh.com/u/lucidlear)\
**Post date:** [July 14, 2023, 3:29am UTC](https://forum.codewithmosh.com/t/why-am-i-getting-escape-notation-when-i-use-my-console/21484/2 "2023-07-14T03:29:41Z")

</div>

Hi Donnie,

Could you share your code so we can take a deeper look why this is occurring

---

<div class="post-metadata">

**Author:** ![donnie](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/donnie/32/6556_2.png) [@donnie](https://forum.codewithmosh.com/u/donnie)\
**Post date:** [July 14, 2023, 6:17am UTC](https://forum.codewithmosh.com/t/why-am-i-getting-escape-notation-when-i-use-my-console/21484/3 "2023-07-14T06:17:55Z")

</div>

Oh, Sorry about that. Here’s what I’m getting:

 ![escape-notation-code-issue](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/e2ecc108d699b8f3c33524c7fc957bcb9f9dde85.jpeg)

---

<div class="post-metadata">

**Author:** ![lucidlear](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/lucidlear/32/5477_2.png) [@lucidlear](https://forum.codewithmosh.com/u/lucidlear)\
**Post date:** [July 14, 2023, 6:55am UTC](https://forum.codewithmosh.com/t/why-am-i-getting-escape-notation-when-i-use-my-console/21484/4 "2023-07-14T06:55:40Z")

</div>

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
