Variable Syntax
Learn how to use data types and identifiers to create a variable and assign it a value.
Declaring variables #
The format followed to declare a variable is simple:
<variable type> <variable identifier>;
Let’s look at an example of declaring a variable without a value.
Get hands-on with 1400+ tech skills courses.