/typescripts-start

Basic examples of using TypeScript

Primary LanguageTypeScript

Here are some basic TypeScript examples

Type number and Number

TypeScript does not have whole numbers, no sign or anything like that. All numbers are defined as real numbers and can even be represented by binaries, hexadecimals, etc.

Reference: https://www.tektutorialshub.com/typescript/typescript-number/ https://www.typescriptlang.org/docs/handbook/basic-types.html#number

Type String

Coming soon.

Basic instructions

Install TypeScript via command line:

  • npm install -g typescript

Run examples tsc number.ts node number.js