본문 바로가기 메뉴 바로가기

Dongi_coding 동기_코딩

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Dongi_coding 동기_코딩

검색하기 폼
  • 분류 전체보기 (345)
    • JSP (0)
    • GitHub (0)
    • Java (23)
    • 리눅스 (1)
    • HTML & CSS (29)
    • 연습 (0)
    • HTML (47)
    • Python (82)
    • Markdown (2)
    • Flask (1)
    • Web_internet (1)
    • JavaScript (58)
    • CSS (51)
    • TypeScript (45)
    • 프로그래머스 코딩테스트 (3)
    • Computer Science (2)
  • 방명록

Interface (1)
[TypeScript] Interfaces and Types

안녕하세요 동기 여러분! 오늘은 객체 타입 심화의 첫 번째 시간으로 Interface를 알아보고 Type과의 차이점은 무엇인지 알아보도록 하겠습니다. Interfaces and Types 아래의 type과 interface의 코드를 보도록 합시다. type StarcraftUnit = { name: string; HP: number; } const marine: StarcraftUnit = // 내용 interface StarcraftUnit { name: string; HP: number; } const marine: StarcraftUnit = // 내용 두 코드를 봤을 때 가장 눈에 띄는 차이점은 키워드(type, interface)가 다르다는 것과 type에는 있는 =(equal) 표시가 inte..

TypeScript 2022. 1. 23. 04:02
이전 1 다음
이전 다음
공지사항
  • 동기 코딩 연락처
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • javascript
  • em
  • 파이썬
  • for문
  • html table
  • method
  • CSS 포지션
  • 타입스크립트
  • function
  • Object
  • if문
  • CSS
  • Margin
  • Typescript
  • html
  • 동기코딩
  • Type
  • 함수
  • 객체
  • 실수
  • 메서드
  • 반복문
  • 자바스크립트
  • padding
  • Array
  • 프로그래머스
  • css position
  • HTML 기본
  • 타입 좁히기
  • Python
more
«   2025/05   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바