[JS] 실습예제
상황 별 Event 실행하기1. 모든 기능은 superEventHandler={} 안에 작성하기2. 구현해야 할 기능: 마우스 우 클릭/ 마우스 떠날 때/ 마우스가 있을 때/ 창 크기 변경할 때 객체 안에 함수 넣기// 1. 이름이 지정된 function 함수const myObj = { myMethod(params) { // ...do something here },}// 2. 익명 함수를 사용함const myObj = { myMethod: (params) => { // ...do something here },}// 3. ES6 이전 스타일const myObj = { myMethod: function myMethod(params) { // ...do something here..