In Wave, variables are declared using the var keyword, followed by the variable name and its type. Wave supports a variety of data types, including integers, floating-point numbers, and strings.
Example:
var num: i32 = 42;
var name: str = "Wave";
2. Constants and Literals in Wave
Constants are defined using the const keyword, ensuring that their values cannot be changed once set. Literals are basic values such as numbers or strings used directly in code.