JS中=>,>>>是什么意思

最近经常看到

JS中=>,符号,于是查了一下别人的博客

=>es6语法中的arrow function

举例:
(x) => x + 6

相当于

 
function(x){
    return x + 6; }

转载于:https://www.cnblogs.com/handsomeBoys/p/6423239.html