+ 1

A question about Atom (text editor) and JavaScript

I have downloaded atom (text editor) in the windows 7 and also downloaded 'script' package. But it still does not run my 'console.log('Hello World') Why?!

22nd Mar 2020, 4:15 AM
CodeR
6 Respostas
+ 1
The output of console.log is shown in console panel of the browser you're running code. You can press F12 key in webpage and click console tab to see output. Or if you are on a NodeJS environment, you can see output by running node path/of/file.js on CMD , windows
22nd Mar 2020, 7:03 AM
Sarthak
Sarthak - avatar
+ 1
Thank you!
22nd Mar 2020, 7:08 AM
CodeR
+ 1
Sarthak 🇳🇵 Thank you but, on YouTube I saw they console.log on the same atom text editor. How?!
22nd Mar 2020, 7:09 AM
CodeR
+ 1
CodeR Are you coding JS on Browser or in NodeJS ?
22nd Mar 2020, 7:12 AM
Sarthak
Sarthak - avatar
+ 1
I am coding on the atom and running it on chrome. But I saw if I click run the script in atom, it shows console.log. But in my case it does not
22nd Mar 2020, 7:15 AM
CodeR
+ 1
CodeR I have not much idea about atom IDE. But this video will guide you to that https://m.youtube.com/watch?v=S7Brp9cStgw Edit: https://youtu.be/_k_pTbHB04A
22nd Mar 2020, 7:21 AM
Sarthak
Sarthak - avatar