# Cannot log a string with console.log?

**URL:** <https://meta.discourse.org/t/cannot-log-a-string-with-console-log/162960>\
**Category:** Development\
**Created:** [September 3, 2020, 7:41pm UTC](https://meta.discourse.org/t/cannot-log-a-string-with-console-log/162960 "2020-09-03T19:41:20Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![justin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/justin/32/157614_2.png) [@justin](https://meta.discourse.org/u/justin)\
**Post date:** [September 6, 2020, 1:04am UTC](https://meta.discourse.org/t/cannot-log-a-string-with-console-log/162960/4 "2020-09-06T01:04:01Z")

</div>

That would tell me the code isn’t getting executed. Does a `console.log` fire if you’re outside the if statement?

---

_[View the full topic](https://meta.discourse.org/t/cannot-log-a-string-with-console-log/162960)._
