Question:
How or where do I type in code?
Kida
2015-08-16 20:45:45 UTC
I'm very new to coding so I don't know any of the proper terminology. This might seem like a strange question, but I just mean how do I get the little box where you type the code and the one that "prints" it. I'm using Javascript and later Python.

I have been using codecademy to learn, and everything is provided for you there, but how would I do it on my own? Where do I type in code? I have an Acer PC.
Three answers:
Flexon
2015-08-16 22:01:25 UTC
Well basically you can write code in notepad if you want, or any text editor. But it's recommended to write your code in something that's made for coding such as Notepad++ (it's a free text editor for code) since it has syntax highlighting and other useful features. Then you save your code as a file with the proper file extension, for example Javascript code is often embedded in an HTML file and if so you save it as .html. You can also save it as a pure Javascript file with the .js ending.



For other programming languages (I don't remember how Python works) you usually use an IDE (Integrated Development Environment) to write, run and debug the code in. An IDE is simply a program you download.
Chris
2015-08-17 00:13:32 UTC
I wrote this a while ago: http://pastebin.com/2iDNfLCW



Get notepad++: https://notepad-plus-plus.org/download/



Then start with the pastebin code; simply save it as HTML and use Notepad to edit it. It already comes with a "console" and a print command.



To run it, just open it in a browser by double-clicking the file or refresh the browser by typing F5.
?
2015-09-20 04:03:13 UTC
Get notepad++


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...