Skip to content

typeof操作符 #6

@qulingyuan

Description

@qulingyuan

typeof是操作符而非函数,故不需要使用括号(使用也可以)。

  • "undefined"表示值为定义;
  • "boolean"表示值为布尔值;
  • "string"表示值为字符串;
  • "number"表示值为数值;
  • "object"表示值为对象(而不是函数)或 null;
  • "function"表示值为函数;
  • "symbol"表示值为符号;

Metadata

Metadata

Assignees

No one assigned

    Labels

    JS知识点New feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions