+ 2

can we use methods without declare variables before it?

18th Jul 2016, 3:52 PM
Mohamed Fawzy
Mohamed Fawzy - avatar
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.
20th Jul 2016, 4:12 PM
ZinC
ZinC - avatar
0
it is not important to declare variable you can use variable without declaring it.
30th Jul 2016, 10:30 AM
Muhammad Raza