Skip to content

Commit 31d1d34

Browse files
#3 First steps with Typescript
1 parent ecc8b3d commit 31d1d34

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

index.js

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
console.log("hello");
1+
const name = "Nicolas",
2+
age = 24,
3+
gender = "male";
4+
5+
const sayHi = (name, age, gender?) => {
6+
console.log(`Hello ${name}, you are ${age}, you are a ${gender}`);
7+
};
8+
9+
sayHi(name, age);
10+
11+
export {};

0 commit comments

Comments
 (0)