2021.04.02

김승우·2021년 4월 2일
0

TIL

목록 보기
41/68

🎉 2021.04.02

1. hashChange event

: https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange

2. 브라우저의 해시 모드 vs 히스토리 모드

: https://happy-coding-day.tistory.com/128

3. javascript continue, break;

let text = '';

const arr = [1,2,3,4,5];

// 1.
for (let item of arr) {
    
    if( item === 3 ) continue;
  text += item;
}
// text => "1245"

// 2.
for (let item of arr) {
    
    if( item === 3 ) break;
  text += item;
}
// text => "12"

🤔 Javascript monkey patching

: https://www.audero.it/blog/2016/12/05/monkey-patching-javascript/

: 안티패턴! 객체의 프로토타입을 직접 변경하는 것?

profile
사람들에게 좋은 경험을 선사하고 싶은 주니어 프론트엔드 개발자

0개의 댓글