function sum(a, b) { return a + b; };
=
let sum = function(a, b) { return a + b; };
=
let sum = (a, b) => a + b;
const man = { age : 13, name : 'elly', height : 173, func1 : function() { console.log("함수 테스트"); }, func2 : function(age, height) { console.log(age+height); }, hascompany : true, isCEO : function() { if (this.hascompany) { console.log("창업가입니다."); } } } man.isCEO()
man.major ="Electronics and information"; // 객체 항목 추가 delete man.major; // 객체 항목 삭제