# Intro to Programming

What are computers really? Do they speak programming languages? Is it hard to write your own programs? This course answers these and many other questions and explores the nature of computers, code and some fascinating ideas that allowed us to create modern computers, mobile phones, internet and, you know, pretty much everything we rely on every day.

### Lessons

• 1

#### What's a computer anyway?

Goal: Ask and try to answer some simple, but important questions: what's a computer anyway? Is it smart? Does it speak programming languages?

• 2

#### Human and computer languages

Goal: Explore the idea os programming languages and figure out what language should you strat with.

• 3

Goal: Write your very first program in JavaScript and get to know the Hexlet's virtual computer that you'll be working in during the course.

• 4

#### Constants and E=mc2

Goal: Learn about basic math in JavaScript, work with numbers and constants to calculate the total energy of your body using Einstein's famous formula.

• 5

#### Making functions — black boxes

Goal: Learn about functions — the building blocks of programs, how to create and run functions.

• 6

#### IF conditions and programs making decisions

Goal: Learn about conditions and boolean algebra, the mechanism that allows programs do one thing or do another thing based on some information.

• 7

#### Oh, no, errors! And dealing with them

Goal: Understand how errors arise in computer programs, how to recognize them and fix them.

• 8

#### Recursion: when function calls itself

Goal: Wrap your head around one very powerful and extremely important concept in programming — recursion.

• 9

#### Iterative process and not being lazy

Goal: Recursion is great, but the plain recursive process is not too efficient. Learn about an alternative way to compute recursively.

• 10

#### Variables and repetitions

Goal: Learn about variables and a way of repeating code with loops. Understand the important distinction between declarative and imperative programming.

• 11

#### Strings

Goal: Get to know text data, strings and learn to manipulate them: glue together or take apart.

• 12

#### Mutators and for loop

Goal: Learn some arithmetic shortcuts to quickly change the values of variables, and get to know the for loop — another way to create repeating code.

• 13

#### Testing code with other code

Goal: Understand the idea of testing code — writing code that checks the behavior of other code, look at some examples and write your own tests

• 14

#### Dividing code into modules

Goal: Learn about dividing code into meaningful and reusable modules.

• 15

#### Expressions vs. Statements

Goal: Understand the important distinction: expressions vs. statements in JavaScript. And learn how this knowledge will help you.

• 16

#### Environment, scope and closures

Goal: Understand how and why isolated environments are created in JS, what scoping is and how cool are closures.

• 17

#### Typing: dynamic vs. static and weak vs strong

Goal: Learn about types in JavaScript, and understand the difference between dynamic and static typing and weak and strong typing.

• 18

#### Pure functions and side effects

Goal: Explore the idea of determinism, side effects, and purity in functions. Get to know the beauty of pure functions.

• ### Challenges

We recommend you to work on these challenges after completing the course. They will help you obtain more experience in programming and strengthen new skill.

# Challenge Success rate
1 Minutes to time 76%
2 DNA to RNA 75%
3 Happy Ticket 56%
4 Sum Square Difference 90%
5 Angle Difference 81%
6 Perfect Numbers 100%
7 Palindromes 75%