Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions basics/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Basics about Programming

In this first chapter, we'll learn the basics of programming and the Javascript language.
In this first chapter we'll learn the basics of programming and the Javascript language.

Programming means writing code. A book is made up of chapters, paragraphs, sentences, phrases, words and finally punctuation and letters, likewise a program can be broken down into smaller and smaller components. For now, the most important is a statement. A statement is analogous to a sentence in a book. On its own, it has structure and purpose, but without the context of the other statements around it, it isn't that meaningful.
Programming means writing code. A book is made up of chapters, paragraphs, sentences, phrases, words, punctuation, and letters. Likewise, a program can be broken down into smaller and smaller components. For now the most important component is a statement. A statement is analogous to a sentence in a book. On its own it has structure and purpose, but it is meaningless without the context of the other statements around it.

A statement is more casually (and commonly) known as a *line of code*. That's because statements tend to be written on individual lines. As such, programs are read from top to bottom, left to right. You might be wondering what code (also called source code) is. That happens to be a broad term which can refer to the whole of the program or the smallest part. Therefore, a line of code is simply a line of your program.
A statement is more casually (and commonly) known as a *line of code*. That's because statements tend to be written on individual lines. As such, programs can be read from top to bottom and left to right. You might be wondering what code (also called source code) is. Code is a broad term that can refer to something as large as a whole program or as small as a line in that program. For instance, a line of code is simply a line of your program.

Here is a simple example:

Expand All @@ -16,4 +16,5 @@ var world = "World";
var message = hello + " " + world;
```

This code can be executed by another program called an *interpreter* that will read the code, and execute all the statements in the right order.
This code can be executed by another program called an *interpreter* that will read the code and execute all the statements in the right order.