adding support demo and exercise sub dirs

This commit is contained in:
Ken
2019-02-18 12:50:57 -08:00
parent d98bda36ad
commit f24ec319f1
16 changed files with 215 additions and 12 deletions

View File

@@ -7,3 +7,6 @@ async function fetchSomething() {
fetchSomething().then(text => {
console.log('hello ' + text);
});
// adding an export to turn this into a "module"
export default {};

View File

@@ -18,3 +18,6 @@ function reverse<T>(arg: T[]): T[] {
// TODO: implement the logic to reverse the array
return arg;
}
// adding an export to turn this into a "module"
export default {};

View File

@@ -17,3 +17,6 @@ const myCar: Car = {
interface InterestingFn {
(someArgs: string): number;
}
// adding an export to turn this into a "module"
export default {};

View File

@@ -10,3 +10,6 @@ console.log(list); // [1,2,3,4]
// Object assignment
const point2D = { x: 1, y: 2 };
const point3D = { ...point2D, z: 3 };
// adding an export to turn this into a "module"
export default {};

View File

@@ -50,3 +50,6 @@ class Animal {}
// noted exception: React.Component with react@<16.8.0
class Cat extends Animal {}
class Dog extends Animal {}
// adding an export to turn this into a "module"
export default {};