官术网_书友最值得收藏!

Summary

In this chapter, you learned a lot about the basic building blocks of a JavaScript program. Now you know the primitive data types:

  • number
  • string
  • boolean
  • undefined
  • null

You also know quite a few operators:

  • Arithmetic operators: +, -, *, /, and %.
  • Increment operators: ++ and --.
  • Assignment operators: =, +=, -=, *=, /=, and %=.
  • Special operators: typeof and delete.
  • Logical operators: &&, ||, and !.
  • Comparison operators: ==, ===, !=, !==, <, >, >=, and <=.

Then you learned how to use arrays to store and access data, and finally you saw different ways to control the flow of your program—using conditions (if-else or switch) and loops (while, do-while, for, for-in).

This is quite a bit of information and it is recommended that you now go through the exercises below, then give yourself a well-deserved pat on the back before diving into the next chapter. More fun is coming up!

主站蜘蛛池模板: 江安县| 息烽县| 中山市| 应城市| 桐城市| 庆云县| 泰来县| 封开县| 天峻县| 冕宁县| 微博| 林周县| 综艺| 双江| 简阳市| 弥勒县| 塘沽区| 天镇县| 顺平县| 托克逊县| 阳曲县| 武威市| 左贡县| 秦皇岛市| 宁阳县| 黑龙江省| 白河县| 综艺| 区。| 馆陶县| 定安县| 桦川县| 阿图什市| 临邑县| 桐柏县| 萝北县| 随州市| 兴隆县| 台湾省| 三明市| 福海县|