Primitive Types Primitive types are the basic data types of JS++. Primitive types are built into the language itself. boolThe bool type is used to represent Boolean values. byteThe byte type is used to represent 8-bit unsigned two's-complement integers. charThe char type is used to represent a single 16-bit Unicode character. doubleThe double type is used to represent IEEE-754 double-precision floating-point numbers. floatThe float type is used to represent IEEE-754 single-precision floating-point numbers. intThe int type is used to represent 32-bit signed two's-complement integers. longThe long type is used to represent 64-bit signed two's-complement integers. shortThe short type is used to represent 16-bit signed two's-complement integers. signed byteThe signed byte type is used to represent 8-bit signed two's-complement integers. stringThe string type is used to represent text via a sequence of characters. Unified External TypeThe external type is used to represent all JavaScript types during compile time. unsigned intThe unsigned int type is used to represent 32-bit unsigned two's-complement integers. unsigned longThe unsigned long type is used to represent 64-bit unsigned two's-complement integers. unsigned shortThe unsigned short type is used to represent 16-bit unsigned two's-complement integers. voidThe void type is used to represent undefined values. Share HTML | BBCode | Direct Link