# Chrome console not printing the console.log in Javascript course

**URL:** <https://forum.codewithmosh.com/t/chrome-console-not-printing-the-console-log-in-javascript-course/16537>\
**Category:** JavaScript\
**Created:** [November 18, 2022, 11:34pm UTC](https://forum.codewithmosh.com/t/chrome-console-not-printing-the-console-log-in-javascript-course/16537 "2022-11-18T23:34:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darkheart\_Rakuma](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@Darkheart\_Rakuma](https://forum.codewithmosh.com/u/Darkheart_Rakuma)\
**Post date:** [November 18, 2022, 11:34pm UTC](https://forum.codewithmosh.com/t/chrome-console-not-printing-the-console-log-in-javascript-course/16537/1 "2022-11-18T23:34:29Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/1/17f35a649b2bba00c0e9fd4902d2d36031d609be.png)  
I tried to go through the course on my MacBook pro and then my windows pc same results.

---

<div class="post-metadata">

**Author:** ![D0ll4R](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/d0ll4r/32/4511_2.png) [@D0ll4R](https://forum.codewithmosh.com/u/D0ll4R)\
**Post date:** [November 19, 2022, 10:19am UTC](https://forum.codewithmosh.com/t/chrome-console-not-printing-the-console-log-in-javascript-course/16537/2 "2022-11-19T10:19:12Z")

</div>

Can you post a screenshot of your code as well?

---

<div class="post-metadata">

**Author:** ![Darkheart\_Rakuma](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@Darkheart\_Rakuma](https://forum.codewithmosh.com/u/Darkheart_Rakuma)\
**Post date:** [November 20, 2022, 1:30am UTC](https://forum.codewithmosh.com/t/chrome-console-not-printing-the-console-log-in-javascript-course/16537/3 "2022-11-20T01:30:58Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/ebf307431190069416f6b54add8f3122afb6a0ea.png)

---

<div class="post-metadata">

**Author:** ![D0ll4R](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/d0ll4r/32/4511_2.png) [@D0ll4R](https://forum.codewithmosh.com/u/D0ll4R)\
**Post date:** [November 22, 2022, 12:33pm UTC](https://forum.codewithmosh.com/t/chrome-console-not-printing-the-console-log-in-javascript-course/16537/4 "2022-11-22T12:33:46Z")

</div>

There the problem is, replace your script tag with mine:

```auto
<script src="index.js"></script>

```

Explanation: You can visit this for more information, [HTML script tag](https://www.w3schools.com/tags/tag_script.asp), But in my own words, the source attribute or better known in coding as “src” should be inside the script attribute and there is no need to add the semi-colon after giving a URL, it is mostly only used when we add inline-styles, so you should always include any URL or address inside the first tag.

Some examples of URL or Address attributes:

```auto
<script src="something.js"></script>
<link rel="stylesheet" href="styles.css" />

```
