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

Exercises

  1. What is the result of executing each of these lines in the console? Why?
    • var a; typeof a;
    • var s = '1s'; s++;
    • !!"false"
    • !!undefined
    • typeof -Infinity
    • 10 % "0"
    • undefined == null
    • false === ""
    • typeof "2E+2"
    • a = 3e+3; a++;
  2. What is the value of v after the following?
    >>> var v = v || 10;

    Experiment by first setting v to 100, 0, null, or unset it (delete v).

  3. Write a script that prints out the multiplication table. Hint: use a loop nested inside another loop.
主站蜘蛛池模板: 滦南县| 富平县| 宁波市| 沐川县| 随州市| 额济纳旗| 乌恰县| 广宁县| 克什克腾旗| 武安市| 夏津县| 娱乐| 泰和县| 临漳县| 昌乐县| 达孜县| 大冶市| 新宁县| 镇巴县| 周宁县| 丹巴县| 高台县| 武乡县| 齐齐哈尔市| 都匀市| 屏东市| 镇巴县| 通州区| 柳河县| 利辛县| 绩溪县| 桓仁| 五莲县| 江西省| 综艺| 临洮县| 万山特区| 全州县| 甘孜县| 梅河口市| 兴宁市|