Typescript - Type


Type definition in Typescript


type annotation


  • : string is a type annotation that set the type string to the variable person
function greeter(person: string) {
    return "Hello, " + person;

More … Basic Type

Discover More
Javascript - Object

object in javascript An object is a data type in Javascript. An object follows a json data structure with key that holds property value. The value may be of a variable or a function In JavaScript, a...
Javascript - Typescript

TypeScript is a typed superset of JavaScript that compile to plain JavaScript. It adds static typing. JSdocReference See When...
Typescript - Interface (Implement)

in Typescript An interface is a type that describes objects In TypeScript, two types are compatible if their internal structure is compatible. An interface can be implemented just by having the same...

Share this page:
Follow us:
Task Runner