SyntaxFix
Write A Post
Hire A Developer
Questions
When you type x = 0 that is creating a new int variable (name) and assigning a zero to it.
x = 0
int
When you type x[age1] that is trying to access the age1'th entry, as if x were an array.
x[age1]
age1
x