-
Notifications
You must be signed in to change notification settings - Fork 11
Learn: Variables
Julia Ogris edited this page Jun 3, 2023
·
11 revisions
Evy has three basic data types: string
, num
, and bool
.
-
string
: Strings are sequences of characters enclosed in quotation marks, such as"Hello World!"
. -
num
: Numbers can be positive, negative, or have decimal points, such as123.45
or-6
. -
bool
: Booleans can only betrue
orfalse
.
Here are some examples of valid and invalid values for each data type:
Basic type | ✅ Valid | ❌ Invalid |
---|---|---|
string |
"abc" , "1" , ""
|
'abc' , abc , "abc , "ab"c"
|
num |
123.45 , -6
|
+2 , .2 , "2" , 1,000.3 , 1 000
|
bool |
true , false
|
"true" |
Overview | About | Playground | Gallery