Skip to content

[js] 第731天 ~的操作符有什么作用? #3823

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

第731天 ~的操作符有什么作用?

3+1官网

我也要出题

Activity

touryung

touryung commented on Apr 16, 2021

@touryung

对数据进行按位取反并返回

GuoYFnice

GuoYFnice commented on Apr 16, 2021

@GuoYFnice

~运算符是对位求反

carrie-xin

carrie-xin commented on Apr 20, 2021

@carrie-xin

按位取反,若对数值 a 进行按位取反,则
~a = -(a+1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsJavaScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@GuoYFnice@carrie-xin@touryung

        Issue actions

          [js] 第731天 ~的操作符有什么作用? · Issue #3823 · haizlin/fe-interview