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

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!

主站蜘蛛池模板: 屏边| 大连市| 常山县| 广汉市| 邵阳市| 建昌县| 巴青县| 略阳县| 呈贡县| 博兴县| 香港| 泰来县| 汤原县| 蒙自县| 桐乡市| 双柏县| 宣汉县| 二手房| 南乐县| 杭锦后旗| 阳新县| 通江县| 正宁县| 汉阴县| 西城区| 宿松县| 平度市| 阳西县| 兴文县| 玉门市| 神木县| 余姚市| 阳泉市| 长春市| 合作市| 确山县| 和龙市| 崇仁县| 阿荣旗| 新巴尔虎左旗| 上虞市|