채현이의 로그데이터

채현이의 로그데이터

  • 분류 전체보기 (52)
    • Mobile App (13)
    • Adsp (2)
    • Algorithm (22)
    • 개발 관련 (11)
  • 홈
  • 태그
  • 방명록
RSS 피드
로그인
로그아웃 글쓰기 관리

채현이의 로그데이터

컨텐츠 검색

태그

알고리즘 react 플라스크 프로그래머스 Android Studio cache BFS 해시 match함수 코딩테스트 dfs JavaScript React Native TypeScript Set JavaScrpit 아나콘다가상환경 앱 개발 큐 Flask

최근글

댓글

공지사항

아카이브

TypeScript(2)

  • TypeScript의 Object 타입 선언

    TS에서 object 타입을 선언할 때 'interface'와 'type'을 사용한다. interface선언하기interface ButtonName { name: string; id: number;}만약 id가 number 또는 빈 값이라면 아래와 같이 표현할 수 있다.두 개가 같은 표현이다.id: number | null;id?: number;정의하기const btn: ButtonName = { name: 'button1', id: 1};확장하기(상속)// extends로 확장하기interface ButtonName2 extends ButtonName { activate: boolean;}const btn2: ButtonName2 = { name: 'button2', ..

    2023.04.25
  • TypeScript의 Type선언

    TS은 JS 기반의 언어이다.TS와 JS의 차이는 Type지정 여부이다.Type을 지정함으로써 나타나는 장점은 아래와 같다.Type관련 오류발생 저하JS보다 빠른 속도원하는 Type으로 지정가능 함수- 함수 선언식function funcName(param1: type1, param2: type2): resultType{ ... return ...}- 함수 표현식const funcName = (param1: type1, param2: type2): resultType => ...;- return값이 없는 함수function funcName():void { ...} 변수let strVar: string = '문자열';let numVar: number = 1;let nullVar: null = null;..

    2023.04.25
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바