JavaScript - function as an object property

后端 未结 3 1397
伪装坚强ぢ
伪装坚强ぢ 2021-02-01 05:52

Hey everyone, this is #23 from John Resig Advanced JavaScript http://ejohn.org/apps/learn/#23, called

What happens if a function is an object pr

3条回答
  •  走了就别回头了
    2021-02-01 06:37

    1. use is a property of the object katana.
    2. !this.isSharp will negate the value of this.isSharp. Ex if isSharp is true it will return false else it return false.
    3. The assert checks whether the result of the boolean result is true. If the result is false then the assertion fails.

提交回复
热议问题