TypeScript

bigint & symbol types

Në shqip: Tipet bigint dhe symbol

ShpjegimiSQ

TypeScript ka tipe edhe për bigint (10n) dhe symbol. unique symbol përdoret për çelësa konstantë që s'përplasen me asgjë tjetër.

EnglishEN

TypeScript also has types for bigint (10n) and symbol. unique symbol is used for constant keys that never clash with anything else.

Si ta mendosh

Si dy lloje të rralla monedhash në koleksion.

Lexoje në anglisht

Like two rare kinds of coins in a collection.

Shembull koditypescript

const madh: bigint = 2n ** 64n;
const ID: unique symbol = Symbol("id");

Terma të lidhur