보호되어 있는 글입니다.
🔖TAG 💡arguments, 💡Default, 💡REST, 💡SPREAD 📗 자바스크립트 함수 업그레이드하기 (default parameter/arguments) 함수에서 쓰는 점3개 Rest 파라미터 Spread, rest 파라미터 연습문제 8개 JS Deep Dive 참고 10장 - 객체 리터럴 26장 - ES6 함수의 추가 기능 https://stackoverflow.com/questions/40102199/counting-words-in-javascript-and-push-it-into-an-object Counting words in javascript and push it into an object I want to achieve a javascript program that count th..
🔖TAG 💡apply, 💡Arrow, 💡call, 💡hoisting, 💡setTimeout, 💡SPREAD, 💡tagged, 💡Var, 💡비동기, 💡전역변수 📗 Arrowfunction 은 function을 대체하는 신문법이 아님 var 오브젝트1 = { 함수 : function(){ console.log(this) } } 오브젝트1.함수() // 오브젝트1 출력 var 오브젝트2 = { 함수 : () => { console.log(this) } } 오브젝트2.함수() //window 출력 this값은 함수를 만나면 항상 변하는데 arrowfunction 안에서는 변하지 않고 밖에 있던 this를 그대로 쓴다 this & arrow function 연습문제 해설 버튼 변수 신문법 총정리 2. Hoisti..