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

Commit 95b6ad9

Browse files
authored
Merge pull request #636 from nakiro/example-update
Update TypeScript in 5 minutes.md
2 parents 09eb26d + 6d7004f commit 95b6ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/tutorials/TypeScript in 5 minutes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Also of note, the use of `public` on arguments to the constructor is a shorthand
120120
```ts
121121
class Student {
122122
fullName: string;
123-
constructor(public firstName, public middleInitial, public lastName) {
123+
constructor(public firstName: string, public middleInitial: string, public lastName: string) {
124124
this.fullName = firstName + " " + middleInitial + " " + lastName;
125125
}
126126
}
@@ -168,4 +168,4 @@ Notice, too, that you can right-click on a symbol and use refactoring to rename
168168
The type information provided works together with the tools to work with JavaScript at application scale.
169169
For more examples of what's possible in TypeScript, see the Samples section of the website.
170170

171-
![Visual Studio picture](/assets/images/docs/greet_person.png)
171+
![Visual Studio picture](/assets/images/docs/greet_person.png)

0 commit comments

Comments
 (0)