Chapter 2 Programming with JavaScript

Programming is all about speaking the language of computers. If you’re a robot, this should be pretty easy for you, but if you’re unlucky enough to be a human, it might take a bit of adjustment.

If you want to learn how to program, there are really two things you have to get your head around. First, you have to think about reducing one big problem into small, digestible chunks that are just right for a computer to crunch. Second, you have to know how to translate those chunks into a language that the computer understands.

I find that the second part—the syntax—gradually becomes second nature (much like when you learn a real second language), and experienced programmers have very little trouble switching ...

Get Simply JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.