# JavaScript stuck in beginning

**URL:** <https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170>\
**Category:** JavaScript\
**Created:** [July 16, 2021, 8:02pm UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170 "2021-07-16T20:02:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liutauras](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Liutauras](https://forum.codewithmosh.com/u/Liutauras)\
**Post date:** [July 16, 2021, 8:02pm UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170/1 "2021-07-16T20:02:49Z")

</div>

Hi, just bought Moshs JavaScript course and in the beginning im stuck … All the examples he shows is on MacOs system im Windows user. And when I was completing “Getting Started” section “JavaScript In node” I couldnt execute “Hello World” in cmd prompt… all I was getting C:\Users\Liutauras\>C:\Users\Liutauras\Desktop\js-basics\indes.js  
‘C:\Users\Liutauras\Desktop\js-basics\indes.js’ is not recognized as an internal or external command,  
operable program or batch file.  
How should I fix this tried with all the dollar signs as in tutorial no result either. used google how to execute file in folder it doesnt show any dollar sign either, but doesnt work either way anyway please help, feeling really angry at my self that I stuck in the beginning…

---

<div class="post-metadata">

**Author:** ![Sunath](https://avatars.discourse-cdn.com/v4/letter/s/d07c76/32.png) [@Sunath](https://forum.codewithmosh.com/u/Sunath)\
**Post date:** [July 17, 2021, 10:21am UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170/2 "2021-07-17T10:21:37Z")

</div>

First of all go the your js file directory and run  
Node your\_filename

---

<div class="post-metadata">

**Author:** ![Liutauras](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Liutauras](https://forum.codewithmosh.com/u/Liutauras)\
**Post date:** [July 18, 2021, 7:39pm UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170/3 "2021-07-18T19:39:32Z")

</div>

How do I do that ? Thank you, you’re the only one to contact me

---

<div class="post-metadata">

**Author:** ![Liutauras](https://avatars.discourse-cdn.com/v4/letter/l/839c29/32.png) [@Liutauras](https://forum.codewithmosh.com/u/Liutauras)\
**Post date:** [July 18, 2021, 7:45pm UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170/4 "2021-07-18T19:45:13Z")

</div>

Also I can run hello world code in VS integrated terminal but not in cmd prompt

---

<div class="post-metadata">

**Author:** ![brschettini](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@brschettini](https://forum.codewithmosh.com/u/brschettini)\
**Post date:** [July 18, 2021, 10:43pm UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170/5 "2021-07-18T22:43:33Z")

</div>

I guess you have a typo in your file name. try to rename it to `index.js` instead of `indes.js`

---

<div class="post-metadata">

**Author:** ![Amuluras](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Amuluras](https://forum.codewithmosh.com/u/Amuluras)\
**Post date:** [July 26, 2021, 11:53pm UTC](https://forum.codewithmosh.com/t/javascript-stuck-in-beginning/6170/6 "2021-07-26T23:53:57Z")

</div>

Js is a script language which you can not run in IDE, the output shows in console. There are two ways to solve your problem.

1. build a HTML file simply using ‘!’ and writing your code in a script label, then run the html file using live server and press ‘F12’ check and debug your code in the console.

2. install ‘code runner’ extension in you VS code, google if you don’t know how to install an extension. then download nodeJS somewhere in your computer, then restart your computer and VS code. you will see a play button on the right top cornor of your ide, you can simply run your js code in ide then. make sure save the file everytime before you run.
