32 Matching Annotations
  1. Apr 2024
  2. Mar 2024
  3. Mar 2021
    1. use recursion to implement it.

      How? typeof val === 'object'?

    1. Try to avoid nesting code too many levels deep.

      减少嵌套等级,优先处理特例

    1. everywhere inside that block

      函数定义在当前 block 中都有效,在外部无效

    2. A Function Declaration can be called earlier than it is defined.

      函数定义可以先使用后声明,这不一定总是好事情

    1. converts the values to numbers

      JS 比较运算时,不同的类型时,先自动转换成数字

    2. peculiarities

      特殊点

    1. last one is returned

      逗号操作符只返回最后一个值

    2. from right to left

      连着的赋值,从右到左赋值

    3. Assignment = returns a value

      = 也是一个操作符,和加减乘除一样,会有一个返回值

    4. precedence

      优先级

    5. unary

      一元

    6. operator

      运算符

    7. operand

      操作数

    1. prior to execution

      在代码执行前就知道的常量

  4. Apr 2020
    1. An array-length specification must be strictly positive.

      数组长度不能为0

      -Wzero-length-array

    2. not required

      作为特例,main 函数可以不返回

    3. All variables should be initialized

      所有变量都应该初始化?VLA 没法初始化

    4. An array with a length that is not an integer constant expression isan VLA.

      长度不是 ICE 的数组声明均产生一个 VLA

    5. Arrays can’t be assigned to

      数组不能赋值