Skip to content

对《null和undefined的区别》的补充 #3

@hexuanzhang

Description

@hexuanzhang

1.null是js的保留关键字,undefined是window对象的内置属性
2.null在参与数值运算时转换为0,undefined参与数值运算时为NaN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions