Variable are used to store information to be referenced and manipulated in a computer program.
// Explicit definition and asignation
var helloWorld string = "Hello World"
// Definition and asignation
helloWorld := "Hello World"
// Reasignation
helloWorld = "New Hello World"
| Type | Zero Value |
|---|---|
| string | “” |
| int | 0 |
| float | 0 |
| bool | false |