mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
checking in docs for github.io page
This commit is contained in:
17
docs/step2-04/demo/src/index.ts
Normal file
17
docs/step2-04/demo/src/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
let counter = 0;
|
||||
|
||||
export function getCount() {
|
||||
return counter;
|
||||
}
|
||||
|
||||
export function increment() {
|
||||
return ++counter;
|
||||
}
|
||||
|
||||
export function decrement() {
|
||||
return --counter;
|
||||
}
|
||||
|
||||
export function square(x: number) {
|
||||
return x * x;
|
||||
}
|
||||
Reference in New Issue
Block a user