Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
List out the built-in data types in TypeScript.
Home
TypeScript - JavaScript's Superset
List out the built-in data types in TypeScript.
0
votes
asked
Mar 22, 2022
in
TypeScript - JavaScript's Superset
by
sharadyadav1986
List out the built-in data types in TypeScript.
typescript-datatypes
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 22, 2022
by
sharadyadav1986
In TypeScript, the built-in data types are also known as primitive data types and the list include:
Number: This represents number type values. The numbers are stored as floating-point values in TypeScript.
String: A string represents a sequence of characters stored as Unicode UTF-16 code.
Boolean: This represents a logical value. When we use the Boolean type, we get the output only in true or false.
Null: Null represents a variable whose value is undefined. It is not possible to directly reference the null type value itself.
Undefined: The Undefined type denotes all uninitialized variables.
Void: A void is the return type of the functions that do not return any type of value.
...