I was doing the "Code Your Own Adventure" lesson and was wondering how i could do this outside of code academy? (What programs on a mac can i do all of this in?)
EDIT: I'll add the names I know of them here, and will edit it when I find more:
Additionally, you'll need to use text edit and write the code then save it as .js (look up how to do that)
I looked into using terminal on Mac for JS, and what you have to do is just download the JS language to your computer, a simple google search should suffice. Additionally, I listed good free IDE's to download, and all you have to do to save a file as .js is choose plain text in TextEdit and then when naming it, name it .js on the end
I hope this could help some!
write in any text editor and open in a web browser!!
save it using .js extension
In this project, you’ll build a game from scratch. You’ll leave Codecademy’s learning environment and build locally, on your own computer, testing and running the game in the browser.
You need a Pro subscription to access this final project, but there is a 14-day money-back guarantee available if you want to give it a go
In terms of applications you need on your Mac, you only need two :
- A text editor – Sublime or Atom are recommended (https://www.codecademy.com/articles/text-editors-sublime-atom)
- A web browser – Chrome is recommended for it's excellent DevTools feature (https://www.codecademy.com/articles/use-devtools)
okay, some good answers here, but i feel a few essential points are missing, so far with coding your adventure i assume you use:
console.log(), but this is a problem, in real life, the console is used for debug, see how to acccess the console in safari here
in general, js is used in interaction with html (webpages) see the bin i created here:
if it doesn't work, press the press the run with js button in the top right.
then click the button in the output, the text should change.
now, you can achieve the same effect on mac (with a text-editor as already mentioned), you can just create html and js files
the other option is to use nodeJS (download link) this allows you to run js code in a terminal.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.