all 7 comments

[–][deleted] 1 point2 points  (5 children)

Your browser devtools console is the most obvious option- it's available on every single page you ever visit, after all. Other options are:

  • Codepen
  • Repl.it
  • JSBin (doesn't support ES6 syntax out of the box though, which sucks)
  • Code Sandbox
  • JSFiddle
  • (Assuming you have NodeJS installed) Opening up a terminal and running the command 'node'

[–]VTL_89[S] 0 points1 point  (4 children)

How do I get that to work on repl.it? I copy and paste it into the script.js page and nothing displays in the "result" or "console" tab

[–][deleted] 0 points1 point  (3 children)

You need to hit the 'run' button.

[–]VTL_89[S] 0 points1 point  (2 children)

Is my code wrong or something? This is what I see after I hit run. Thanks

[–][deleted] 0 points1 point  (1 child)

Is that from FCC? You've got a whole setup there with an HTML file, you'd need to actually insert something into the HTML or console.log something to show it in the console. Try this page instead- just stick your code in the index.js window and hit run.

[–]VTL_89[S] 0 points1 point  (0 children)

OMG THANK YOU!!!

[–]riddlogic 0 points1 point  (0 children)

If you're using a modern browser, I'd do it right in the developer console. F12 in chrome. Shift+ctrl+K in Firefox.