섹션1 돌아보기_ 주요 개념 요약, 스프린트 다시풀기
1 + '1' // '11'
123 - '1' // 122
JavaScript의 Quirky? : https://github.com/denysdovhan/wtfjs
클로저
lexical scope와 closure. //. 다시 했을 때 한번에 통과하지 못하고 테스트케이스를 보고서야 맞췄다...도루마무 실화니..함수안의 변수명 앞에 선언자 가 있는지 없는지 잘 봐야!
this
- this에 대해서
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Operators/this
메소드 repeat() 'sarah'.repeat(3) // 'sarahsarahsarah' string.prototype.repeat(인자는 0이상 정수, 3.5 넣으면 3번 반복) IE 에선 안됨
Array.from() : Array.from() 메서드는 유사 배열 객체(array-like object)나 반복 가능한 객체(iterable object)를 얕게 복사해 새로운Array 객체를 만든다
유사 배열 객체(array-like object)
rest/spread 문법을 객체 분해에 적용할 수 있다
// 이때 순서가 중요, 맨 앞에 거에 뒤에 씌운거를 덮는 형식 (같은 키 있으면 덮고 없는건 추가됨 )Object.assign과 비슷
Element. classList.add() / remove()
Element.classList.add('hide')
Element.onkeyup = () ⇒ {}
JS에서 이벤트메소드 바로 DOM요소에 붙이기
정규표현식 다시보기_
영어소문자 또는 숫자로 이루어진 아이디,
영문자,숫자,특수키를 조합한 비밀번호 조건
연습사이트: https://regexone.com/
화면 구현은 되는데, 테스트 통과는 안되는 매직_ 아무래도 구현 방식이 여러가지라서 State를 props로 내려줄건지, 아예 라우팅으로 새로운 컴포넌트를 렌더링 할건지, 조건부 렌더링을 어디서 해줄건지에 따라 나뉘어서 그런듯?
아니면 또 변수명 철벽방어인가 ㅎㅎ
npm 인스톨 할 때 종종 뜨는 npm
WARN
deprecated
~ 는 뭘까?
→ What does NPM warn deprecated mean?
That might mean updating to a new version, or updating your package dependencies. A deprecation message doesn't always mean the package or version is unusable; it may mean the package is unmaintained and will no longer be updated by the publisher.