TypeScript (2) 썸네일형 리스트형 Typescript Handbook TypeScript began its life as an attempt to bring traditional object-oriented types to JavaScript so that the programmers at Microsoft could bring traditional object-oriented programs to the web. As it has developed, TypeScript’s type system has evolved to model code written by native JavaScripters. The resulting system is powerful, interesting and messy. Type Annotaion - 변수 변수명: 타입명 = 할당될 값; let.. Typescript 개요 -기존의 자바스크립트 위에 타입스크립트의 type system 레이어를 추가한 것이다. (먼저 자바스크립트 문법으로 코드를 작성하고 거기에 타입 지정을 추가해주면 됨!) -코드가 실행되기 전에 예기치 않은 동작(변수, 함수 등이 있을 지 없을 지 모르는 상황, 타입이 일관되게 사용되지 않는 것 등)들에 대한 버그 가능성을 알려준다. Static types systems describe the shapes and behaviors of what our values will be when we run our programs. https://www.typescriptlang.org/ko/docs/handbook/2/basic-types.html *const submitHandler = e=>{...} 라.. 이전 1 다음