코딩 연습
코드펜 : https://codepen.io/
아이패드로 작성시 콘솔로그를 못보니
// 객체 -> JSON
문자열로 변환 const json = JSON.stringify(obj);
만들어지는 순간 네트워크와 통신
제공자와 소비자가 있음
fnc() 앞에 async를 쓰면 Promise로 바뀜
자바 스크립트
Fetch
Axios
Ajax
BEM
• 자바스크립트 공부 사이트 : https://developer.mozilla.org
• react : https://ko.reactjs.org/
• 타입스크립트
: https://joshua1988.github.io/ts/
: https://heropy.blog/2020/01/27/typescript/
const, let, var 은 : 을 쓰고 요소의 타입을 적는다
예) const counter:number = 1;
함수도 :를 쓰고 타입을 적는다
function sum(x: number, y: number): number {
return x + y;
}
sum(1, 2);