+ 2
can we use methods without declare variables before it?
3 Answers
+ 5
"int myInt = 5;".
"static int MyMethod(int x)".
@Dainius, the above code isn't JavaScript. Even if you may be right theoretically, using another language's vocabulary just confuses beginners like us.
0
it is not important to declare variable you can use variable without declaring it.