TypeScriptSyntax
Basic Primitive Types
Code example
string, number, boolean, bigint, symbol, null, undefinedThe built-in primitive types.
In TypeScript, basic primitive types: the built-in primitive types — string, number, boolean, bigint, symbol, null, undefined
string, number, boolean, bigint, symbol, null, undefinedstring, number, boolean, bigint, symbol, null, undefinedThe built-in primitive types.
Use string, number, boolean, bigint, symbol, null, undefined.
Use this pattern: string, number, boolean, bigint, symbol, null, undefined
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.