Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit d6a660b

Browse files
committed
Update greeter.ts formtting
Add spacing in a StyleCop like fashion, and consolidate the var statements by eliminating the variable "str"
1 parent 2a51062 commit d6a660b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

greeter/greeter.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ class Greeter {
44
return "<h1>" + this.greeting + "</h1>";
55
}
66
};
7+
78
var greeter = new Greeter("Hello, world!");
8-
var str = greeter.greet();
9-
document.body.innerHTML = str;
9+
10+
document.body.innerHTML = greeter.greet();

0 commit comments

Comments
 (0)