화살표 함수
function add1(x, y) { return x + y; } const add2 = (x, y) => { return x + y; }; const add3 = (x, y) => x + y; const add4 = (x, y) => (x + y); function not1(x) { return !x; } const not2 = x => !x; function의 선언대신 ⇒ 기호로 대체가 가능하며 return문을 줄일수가 있고 매개변수를 not2같은 방식으로 선언이 가능하다. var relationship1 = { name: 'zero', friends: ['nero', 'hero', 'xero'], logFriends: function () { var that = this; // relationsh..