types
Godot supports for static, inferred, and dynamic typing. Variables can be allocated without assigning a value:
dynamic
var score = 0
var size = 3.2
var paused = false
var name = ""
var selected_weapon
static
var score: int = 0
var size: float = 3.2
var paused: bool = false
var name: String = ""
The syntax for inferred, but still static typing is :=
var score := 0
var size := 3.2
var paused := false
var name := ""
scope
Variables can either be declared in a global scope or in a function local scope.