Chapter 2: How Programs Work
Major Concepts
After completing this chapter, you should be able to do the following:
- Explain what an algorithm is.
- Explain what a programming language is.
- Explain why one programming language might be chosen over another.
- Explain how a program runs, including the differences between compiled and interpreted languages.
- Run a program and locate its output in the console.
- Understand some basic debugging practices.
Key Terminology
Here are the key terms for this chapter. On the pages that they appear, make note of what they are and their definitions.
Introduction
- Program
- Algorithm
Programming Languages
- Binary code
- Hexadecimal
- Programming language
- Compiler
- Syntax
The JavaScript Language
- JavaScript
- Front-end
- Back-end
Setting Up Your Coding Tools
- Integrated development environment (IDE)
- Visual Studio Code (VSC)
- Console
- Terminal
- Starter code
Your First Program
cd
ls
- Dashboard
- Repository
git status
- Staging
git add
git commit
- Commit message
git pull
git push
- Fork
- Clone
- Personal Access Token