Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
<script type="text/typescript" src="TypeScript.ts"></script>
<script src="https://rawgit.com/Microsoft/TypeScript/master/lib/typescriptServices.js"></script>
<script src="https://rawgit.com/basarat/typescript-script/master/transpiler.js"></script>
</head>
<body>
</body>
</html>
// TypeScript.ts
var choice:string = "typescript";
switch(choice) {
case "typescript": {
var lang:string = "your choice is typescript"
break;
}
case "javascript": {
var lang:string = "your choice is javascript"
break;
}
case "angularjs": {
var lang:string = "your choice is angularjs"
break;
}
case "backbonejs": {
var lang:string = "your choice is backbonejs"
break;
}
default: {
var lang:string = "invalid choice"
break;
}
}
document.body.innerHTML = `<div>${lang}</div>`
The most helpful TYPESCRIPT solutions
get client ip address using typescriptTYPESCRIPT Click to see more ... 6.3K 243