Variable
Which of the following variable names are valid?
- 1n
- ~n
- this_is_a_number
- n1?
- A1
- match
- function()
Exercise
- Create a val called pi and assign it the value of 3.14159:
- Create a val called message and assign it a string value:
- Create a val called age and assign it an integer value:
- Create a val called isTall and assign it a boolean value:
- Create a val called name and assign it a string value, then print a message that includes the value of name: