메소드
https://peter-coding.tistory.com/102
[JS] 메소드(String, Math, Array, Object)
String 메소드 https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/String String - JavaScript | MDN String 전역 객체는 문자열(문자의 나열)의 생성자입니다. developer.mozilla..
peter-coding.tistory.com
생성자 함수
https://peter-coding.tistory.com/100
[JS] 생성자 함수(Prototype), Class 상속
생성자 함수(Prototype) - JS는 프로토타입 기반의 언어임. 프로토타입 기반 언어는 객체 원형인 프로토타입을 이용하여 새로운 객체를 만들어냄 - 프로토타입 객체를 참조하는 Prototype속성 - 객체
peter-coding.tistory.com
표기법
dash-case / snake_case / camelCase / PascalCase
함수
타이머 함수
setTimeout(함수, 시간) : 일정 시간 후 함수 실행
구조분해할당 & 전개 연산자
https://peter-coding.tistory.com/104
[JS] 구조 분해(Destructuring), 전개 연산자(...)(spread, rest)
객체의 구조분해 객체 안의 값을 추출해 변수 혹은 상수로 선언 ; 기존 A['a'] or A.a -> a라고 사용 가능 - a대신 e라는 변수명으로 사용 - d의 기본값 'korea'부여 const A={ a:"a'", a:"b'", C:"c'" } const {..
peter-coding.tistory.com
Tip
1. for문
user가 객체 일 때, user에서 key값만 가져와 key변수에 집어 넣음
for (let key in user){ console.log(key,user[key]); }
끄적끄적
1. 유일한 식별자를 만들고 싶을 때 ; Symbol()메소드 사용
'WebProgramming > JS' 카테고리의 다른 글
[JavaScript] Computed Property (0) | 2022.07.26 |
---|---|
[JavaScript] Object Methods(assign,keys,values,entries,fromEntries) (0) | 2022.07.26 |
[JS] Array 메소드 (map,filter,reduce,find,concat,slice) (0) | 2022.07.15 |
[JS] JS 라이브러리 (lodash, axios) (0) | 2022.06.30 |
[TS] 타입 별칭 & Interface (0) | 2022.06.24 |
[TS] TS의 타입 시스템? & Compliation Context (0) | 2022.06.12 |
[TS] TypeSCript이란? & 타입 (0) | 2022.06.12 |
[JS] JSON (0) | 2022.06.11 |