Content Menu

명이나물 라이브러리

프로필사진
  • Write
  • Manage
  • 방명록
  • 전체 (206)
    • 개발일기 (1)
    • 프로젝트 (4)
    • CS (16)
      • 운영체제(OS) (16)
      • 컴퓨터 구조 (0)
      • 네트워크 (0)
      • 자료구조 (0)
    • Ops (3)
      • AWS (1)
      • Docker (1)
      • Git (1)
    • Web (24)
      • HTML (3)
      • CSS (4)
      • JAVASCRIPT (12)
    • Language (30)
      • PYTHON (30)
      • JAVA (0)
    • Framework (21)
      • Django (3)
      • Spring (0)
      • NestJS (18)
    • DB (2)
      • Mysql (0)
      • PostgreSQL (2)
    • 코딩테스트 (103)
      • 프로그래머스 (77)
      • 백준 (22)
  • 방명록
명이나물 라이브러리명이나물 라이브러리
검색하기 폼
로그인 관리
TIL | TypeScript_기본문법2
글 썸네일
TIL | TypeScript_기본문법2

Interface 만들기 typscript interface Human { name : string; age : number; gender: string; } const person = { name : "Melody", age : 29, gender: "Female" } const sayHi = (person : Human):string => { return `hi, I'm ${person.name}, ${person.gender}, ${person.age}`; }; console.log(sayHi(person)); export {};typscript -> javastript "use strict"; Object.defineProperty(exports, "__esModule", { value: ..

Framework/NestJS 2021. 10. 10. 07:44
TIL | TypeScript_기본 문법1
글 썸네일
TIL | TypeScript_기본 문법1

index.ts 작성시 const name1 = "Melody", age1 = 29, gender1 = "Female"; const sayHi = (name, age, gender?) :void => { // void : 빈공간이라는 뜻 return 값이 없을 때 사용 console.log(`hi, I'm ${name}, ${gender}, ${age}`) }; // sayHi(name1, age1, gender1); sayHi("melody", 29, "Female"); export {}; //export를 설정하지 않으면, name이라는 변수가 다른곳에 선언되었다고 오류가 뜬다. // 오류가 뜬다.모듈인 것을 이해할 수 있도록 export 작성 // cf. return 값이 String 인 경..

Framework/NestJS 2021. 10. 10. 07:40
« 1 »
✏️ 글쓰기

방문자

오늘
어제
전체

카테고리

«   2021/10   »
일 월 화 수 목 금 토
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

티스토리툴바