answer action

Can’t find an answer?

Make use of a qualified tutor to get the answer

xDaizu
0
Q:

typescript

interface LabelledValue {
  label: string;
}

function printLabel(labelledObj: LabelledValue) {
  console.log(labelledObj.label);
}

let myObj = {size: 10, label: "Size 10 Object"};
printLabel(myObj);
2
TypeScript is an open-source programming language developed and maintained by Microsoft. It is a strict syntactical superset of JavaScript, and adds optional static typing to the language. 

TypeScript is designed for development of large applications and transcompiles to JavaScript.
3
Starts and ends with JavaScript
TypeScript starts from the same syntax and semantics that millions of JavaScript developers know today. Use existing JavaScript code, incorporate popular JavaScript libraries, and call TypeScript code from JavaScript.

TypeScript compiles to clean, simple JavaScript code which runs on any browser, in Node.js, or in any JavaScript engine that supports ECMAScript 3 (or newer).
-2
TypeScript is an open-source programming language developed and maintained
by Microsoft.

It is a strict syntactical superset of JavaScript, and adds optional static
typing to the language. 

TypeScript is designed for development of large applications and transcompiles
to JavaScript.
-1

New to Communities?

Join the community