3.0 타입스크립트 기초 문법
타입 표기 (Type Annotation)
const areYouCool: boolean = true;
const answer: number = 42;
const typescript: string = "great";
const greetings: string = `
Hello, Readers!
Welcome to TypeScript.
`;
const hasType: Object = {
TypeScript: true,
JavaScript: false
};예제 코드의 실행 환경
Last updated