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

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!

主站蜘蛛池模板: 泰兴市| 大石桥市| 磐石市| 桦甸市| 钟祥市| 江阴市| 铜川市| 连江县| 凌云县| 德令哈市| 泰安市| 思茅市| 兴城市| 馆陶县| 阿城市| 龙南县| 天峨县| 阿图什市| 平阳县| 永登县| 交口县| 日照市| 登封市| 淮阳县| 南召县| 隆安县| 江陵县| 吴江市| 农安县| 甘德县| 镇原县| 黎平县| 常宁市| 海林市| 社旗县| 特克斯县| 新兴县| 永吉县| 安顺市| 阳信县| 鲜城|