|
@@ -48,3 +48,10 @@ bar(1, 2, 3, 4, 5); // (5+6)/2 = 15
|
|
// Rejected because of noImplicitAny.
|
|
// Rejected because of noImplicitAny.
|
|
// function qux(x, y) { return x + y; }
|
|
// function qux(x, y) { return x + y; }
|
|
// qux('a', 'b');
|
|
// qux('a', 'b');
|
|
|
|
+
|
|
|
|
+function sendGreeting(greeting: string = "Hello, world"): void {
|
|
|
|
+ console.log(greeting);
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+sendGreeting();
|
|
|
|
+sendGreeting("Hello, moon");
|