01 Write, save, run
Programming has a loop at the centre of it, and it never changes however complicated the project gets.
- Write instructions into a plain text file.
- Save it, with the extension that says which language it is.
- Run it, and read what comes back — including the errors.
The extension is not decoration. .py tells your computer to hand the file to Python; .js hands it to Node. Save a Python file as .txt and nothing will run it.
Word processors are not text editors. A file saved from Word carries invisible formatting that no language can read. Use VS Code.
| Extension | Run it with | Runs where |
|---|---|---|
.py | python hello.py | Your terminal |
.js | node hello.js | Your terminal |
.html | Open it in a browser | The browser |