이 웹사이트는 자바스크립트 활성화가 필요합니다.
홈
탐색
lain.church
도움말
가입하기
로그인
lunarised
/
ReactLearning
보기
1
좋아요
0
포크
0
코드
이슈
0
풀 리퀘스트
0
릴리즈
0
위키
활동
소스 검색
First bitta TS done
master
James McKenzie
3 년 전
커밋
a6d2ce5903
7개의 변경된 파일
과
1685개의 추가작업
그리고
0개의 파일을 삭제
분할 보기
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
TSLearning/Section 1/.gitignore
+8
-0
TSLearning/Section 1/app.js
+9
-0
TSLearning/Section 1/app.ts
+8
-0
TSLearning/Section 1/firstBit.ts
+14
-0
TSLearning/Section 1/index.html
+1630
-0
TSLearning/Section 1/package-lock.json
+15
-0
TSLearning/Section 1/package.json
+ 1
- 0
TSLearning/Section 1/.gitignore
파일 보기
@@ -0,0 +1 @@
node_modules/
+ 8
- 0
TSLearning/Section 1/app.js
파일 보기
@@ -0,0 +1,8 @@
function sendRequest(data, cb) {
// ... sending a request with "data"
return cb({ data: 'Hi there!' });
}
sendRequest('Send this!', function (response) {
console.log(response);
return true;
});
+ 9
- 0
TSLearning/Section 1/app.ts
파일 보기
@@ -0,0 +1,9 @@
function sendRequest(data: string, cb: (response: any) => void) {
// ... sending a request with "data"
return cb({data: 'Hi there!'});
}
sendRequest('Send this!', (response) => {
console.log(response);
return true;
});
+ 8
- 0
TSLearning/Section 1/firstBit.ts
파일 보기
@@ -0,0 +1,8 @@
function add(n1 :number, n2 :number){
return n1 + n2;
}
const number1 = 5;
const number2 = 3.3;
const result = add(number1, number2);
console.log(result);
+ 14
- 0
TSLearning/Section 1/index.html
파일 보기
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typescript Learning</title>
<script src="app.js" defer></script>
</head>
<body>
<p> Hi </p>
</body>
</html>
+ 1630
- 0
TSLearning/Section 1/package-lock.json
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기
+ 15
- 0
TSLearning/Section 1/package.json
파일 보기
@@ -0,0 +1,15 @@
{
"name": "section-1",
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "lite-server"
},
"author": "",
"license": "ISC",
"devDependencies": {
"lite-server": "^2.5.4"
}
}
쓰기
미리보기
불러오는 중...
취소
저장