JS中 => ; ===的意义

=>是es6语法中的arrow function

举例:
(x) => x + 6

相当于

function(x){
    return x + 6;
}

>>>
是无符号移位运算符

举例:

100>>>2

相当于

先将100转换成二进制01100100,向右移两位后得00011001,再转换回十进制,得25

posted @ 2017-08-18 09:12  JokerJason  阅读(812)  评论(0)    收藏  举报

It's not who you are underneath, it's what you do that defines you

Brick walls are there for a reason :they let us prove how badly we want things