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

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!

主站蜘蛛池模板: 兰西县| 宜都市| 化德县| 梁河县| 安溪县| 会理县| 齐齐哈尔市| 高陵县| 塔城市| 阳泉市| 巴林左旗| 新竹县| 土默特右旗| 乐业县| 昌平区| 武夷山市| 弋阳县| 江西省| 虹口区| 大余县| 石家庄市| 靖江市| 福鼎市| 泰来县| 正定县| 屯门区| 木兰县| 教育| 巨鹿县| 辽中县| 和林格尔县| 辛集市| 玉门市| 博白县| 桃园市| 松江区| 宁明县| 刚察县| 灌南县| 红河县| 大港区|