File: hello-world.ts

package info (click to toggle)
emacs-lsp-docker 1.0.0%2Bgit20250423.ff41f4a-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 348 kB
  • sloc: lisp: 705; sh: 50; makefile: 24; cpp: 19; javascript: 13; python: 10
file content (13 lines) | stat: -rw-r--r-- 214 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
class Greeter {
	greeting: string;
	constructor(message: string) {
		this.greeting = message;
	}

	SayHello() {
		console.log(this.greeting + " world");
	}
}

let greeter = new Greeter("Hallo");
greeter.SayHello()