일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 다중조건문
- Kotlin Class
- python Django
- activate 오류
- 파이썬 반복문
- git
- Python Class
- 클래스 속성
- Kotlin 클래스 속성정의
- django virtualenv
- Variable declaration
- 파이썬
- 파이썬 장고
- Kotlin 클래스
- github
- Kotlin 조건문
- NextJs
- Python
- 넥스트js
- 강제 타입변환
- 자바 기본타입
- Kotlin If
- 좋은글
- 장고 가상환경
- 희망
- 파이썬 클래스
- 성공
- 파이썬 제어문
- Kotlin else if
- 도전
- Today
- Total
목록전체 글 (127)
키모스토리

// Classclass Car { color: string; constructor(color: string){ this.color=color; } start(){ console.log("start"); }}const bmw = new Car("red"); 접근 제한자 : public, private , protected다른 언어와 동일.public : 부모클래스 내부, 자식클래스 내부, 외부 객체에서 모두 접근가능private : 부모클래스 내부에서만 접근가능protected : 보모클래스, 자식클래스 내부까지만 접근가능 // Classclass Car { private name: string = "car"; color: st..

리터럴 타입 (Literal Types)// Literal typesconst userName1 = "Bob";let userName2: string | number = "Tom";userName2 = 3;type Job = "police" | "devloper" | "teacher";interface User { name : string; job : Job;}const user: User = { name: "Bob", job: "police", // type Job 의 값들 중에서만 선택가능}interface HighSchooleStudent { name: number | string; grade: 1 | 2 | 3;} 유니온 타입 (Union Types) , 둘 중 ..

function 사용법// 함수// 매개변수 타입지정, 반환타입 괄호 뒤에 타입지정function add(num1:number, num2:number) : number { return num1+num2;}let c=add(10, 20);console.log(c);function isAdult(age: number) : boolean { return age>19;}console.log(isAdult(22));// 매개변수 optional (?)function hello(name?: string) { return `Hello, ${name || "world"}`; }const result = hello();const result2 = hello('Kim');// const result3..

object let user:object;user = { name: 'xxx', age: 30,}console.log(user.name);위 object 코드는 Property 'name' does not exist on type 'object'. 오류를 반환한다.object 에는 property 속성이 없기 때문이며 이럴때 interface를 사용한다. interface 로 object 구현// grade 의 value를 한정지으려함.type Score = 'A' | 'B' | 'C' | 'F';// property 에 ? 를 지정하면 optionaly 한 속성이 된다interface User { name : string; age : number; gender? : s..

타입스크립트란?타입스크립트(TypeScript)는 자바스크립트의 슈퍼셋인 오픈소스 프로그래밍 언어이다. 마이크로소프트에서 개발, 유지하고 있으며 엄격한 문법을 지원한다. C#의 리드 아키텍트이자 델파이, 터보 파스칼의 창시자인 아네르스 하일스베르(Anders Hejlsberg)가 개발에 참여한다. 클라이언트 사이드와 서버 사이드를 위한, 프론트백 통합 개발에 사용할 수 있다. 타입스크립트는 자바스크립트 엔진을 사용하면서 커다란 애플리케이션을 개발할 수 있게 설계된 언어이다. 자바스크립트의 슈퍼셋이기 때문에 자바스크립트로 작성된 프로그램이 타입스크립트 프로그램으로도 동작한다. 타입스크립트에서 자신이 원하는 타입을 정의하고 프로그래밍을 하면 자바스크립트로 컴파일되어 실행할 수 있다. 타입스크립트는 모든 운영..

https://axios-http.com/ AxiosPromise based HTTP client for the browser and node.js Axios is a simple promise based HTTP client for the browser and node.js. Axios provides a simple to use library in a small package with a very extensible interface.axios-http.comAxios란?Axios는 node.js와 브라우저를 위한 Promise 기반 HTTP 클라이언트 입니다. 그것은 동형 입니다(동일한 코드베이스로 브라우저와 node.js에서 실행할 수 있습니다). 서버 사이드에서는 네이티브 node.js의 htt..