new Point(42)
or new Point(
Basic type concept will be described in this section. Primitive types, object types, variant type, and Nullable types exist in JSX.
-Pritimive Types
+Primitive Types
-There are three pritimive types in JSX: string
, number
, and boolean
. The three are non-nullable, immutable types. The code snippet below declares three variables s
, n
, b
with their repective types, annocated to the right of the name of the variables using the :
mark.
+There are three primitive types in JSX: string
, number
, and boolean
. The three are non-nullable, immutable types. The code snippet below declares three variables s
, n
, b
with their repective types, annocated to the right of the name of the variables using the :
mark.
= $context->{prettify}->('jsx', <<'EOT')
var s : string;