https://www.youtube.com/watch?v=V_Kr9OSfDeUPromise보다 더 쉽게 쓸 수 있는 ES8 문법aysnc라는 키워드를 함수 선언 앞에다 써주면 new Promise()오브젝트가 저절로 생성 된다.then()의 지옥에서 벗어나기
Pure Function is a function (a block of code ) that always returns the same result if the same arguments are passed. It does not depend on any state,
Promise > Promise는 성공/실패 판정하는 기계~! > 일반 콜백함수에서는 A 실행후 B를 실행해 주세요~ 이런 방식이였다면 > Promise에서는 A 실행후 성공이면 B를 실행해주세요 실패면 C를 실행해주세요 이렇게 작동한다. > Promise의 3가
Rest Parameter는 MDN에도 나와있는데ES6문법으로 작성하고 있다면 arguments대신 rest parameter로 작성하라고 써있다Note: If you're writing ES6 compatible code, then rest parameters sho
자바스크립트 함수에는 arguments라는 객체가 존재한다arguments is an Array-like object accessible inside functions that contains the values of the arguments passed to that
자바스크립트 함수는 파라미터라는 것이 있다근데 저 name이라는 파라미터에 기본값 default value또한 넣어 줄 수 있다.
먼저 호이스팅에대해 정리를 하자면 호이스팅은 var라는 변수선언 해주는 변수선언문의 scope를 최상단으로 올려주는 행위 이다.HoistingJavaScript Hoisting refers to the process whereby the interpreter alloc
너무나도 자주 쓰이고 자주 들어봤떤 High Order Method & Array에 대해 알아보자!forEachfiltermapsortreduce먼저 우리는 companies라는 배열을 가지고 시작한다High Order Method를 쓰기 전에 먼저 기본적인 for L
console.log('Hello Codeit!') //변수 선언 let espressoPrice = 3000; let espressoPrice = 4300; let espressoPrice = 4800; espressoPrice = 3000; // let espr