= (assignment)
Try it yourself →Assigns a value to a variable.
Syntax
name = value
Description
Values are assigned with =, and the type is inferred from the value. The value can be changed later. Use typeof(x) to query the type.
Example
name = "Julia" score = 10 score = 20 println(name) println(score)
Expected output
Julia 20
When to use?
General-purpose variable definition.