microsoft/vscode-react-native
Publicmirrored from https://github.com/microsoft/vscode-react-nativeAvailable
test/debugger/assets/hello.ts
12lines · 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 | public sayHello() { |
| 6 | return this.msg; |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | const hello = new Hello("HelloWorld!"); |
| 11 | |
| 12 | console.log(hello.sayHello()); |
| 13 | |