Skip to content

Instantly share code, notes, and snippets.

@AnthonyTailer
AnthonyTailer / 0.primitiveTypes.ts
Last active October 21, 2020 02:32
TypeScript basics
/** PRIMITIVES TYPES **/
// boolean (true / false)
let isOpen: boolean
// string ('foo', "foo", `foo`)
let message: string
message = `foo ${isOpen}`
// number (int, float, hex, binary)