microsoft/vscode-react-native
Publicmirrored fromhttps://github.com/microsoft/vscode-react-nativeAvailable
test/debugger/assets/hello.ts
13lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT license. See LICENSE file in the project root for details. |
| 3 | class Hello { |
| 4 | constructor (public msg: string) { |
| 5 | } |
| 6 | public sayHello() { |
| 7 | return this.msg; |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | const hello = new Hello("HelloWorld!"); |
| 12 | |
| 13 | console.log(hello.sayHello()); |