File tree Expand file tree Collapse file tree 3 files changed +36
-31
lines changed
Expand file tree Collapse file tree 3 files changed +36
-31
lines changed Original file line number Diff line number Diff line change 1+ function add ( n1 : number , n2 : number ) {
2+ return n1 + n2 ;
3+ }
4+
5+ const number1 = 5 ;
6+ const number2 = 2.8 ;
7+
8+ const result = add ( number1 , number2 ) ;
9+ console . log ( result ) ;
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
7+ < title > Understanding TypeScript</ title >
8+ < script src ="app.js " defer > </ script >
9+ </ head >
10+ < body >
11+
12+ </ body >
13+ </ html >
Original file line number Diff line number Diff line change 11{
2- "name" : " my-app" ,
3- "version" : " 0.1.0" ,
4- "private" : true ,
5- "dependencies" : {
6- "cra-template" : " 1.1.2" ,
7- "react" : " ^17.0.2" ,
8- "react-dom" : " ^17.0.2" ,
9- "react-scripts" : " 4.0.3" ,
10- "web-vitals" : " ^2.1.0"
11- },
2+ "name" : " understanding-typescript" ,
3+ "version" : " 1.0.0" ,
4+ "description" : " Understanding TypeScript Course Setup" ,
5+ "main" : " app.js" ,
126 "scripts" : {
13- "start" : " react-scripts start" ,
14- "build" : " react-scripts build" ,
15- "test" : " react-scripts test" ,
16- "eject" : " react-scripts eject"
17- },
18- "eslintConfig" : {
19- "extends" : [
20- " react-app" ,
21- " react-app/jest"
22- ]
7+ "test" : " echo \" Error: no test specified\" && exit 1" ,
8+ "start" : " lite-server"
239 },
24- "browserslist" : {
25- "production" : [
26- " >0.2%" ,
27- " not dead" ,
28- " not op_mini all"
29- ],
30- "development" : [
31- " last 1 chrome version" ,
32- " last 1 firefox version" ,
33- " last 1 safari version"
34- ]
10+ "keywords" : [
11+ " typescript" ,
12+ " course"
13+ ],
14+ "author" : " Maximilian Schwarzmüller" ,
15+ "license" : " ISC" ,
16+ "devDependencies" : {
17+ "lite-server" : " ^2.5.4"
3518 }
3619}
You can’t perform that action at this time.
0 commit comments