asx4e-saaaa-aaaao-a2qbq-cai.icp0.io Open in urlscan Pro
2a00:fb01:400:200:5000:5aff:fef2:9428  Public Scan

URL: https://asx4e-saaaa-aaaao-a2qbq-cai.icp0.io/cm/mode/javascript/typescript.html
Submission: On December 16 via api from US — Scanned from FR

Form analysis 0 forms found in the DOM

Text Content

CODEMIRROR

 * Home
 * Manual
 * Code

 * Language modes
 * TypeScript


TYPESCRIPT MODE

class Greeter { greeting: string; constructor (message: string) { this.greeting
= message; } greet() { return "Hello, " + this.greeting; } } var greeter = new
Greeter("world"); var button = document.createElement('button') button.innerText
= "Say Hello" button.onclick = function() { alert(greeter.greet()) }
document.body.appendChild(button)

This is a specialization of the JavaScript mode.