IDK why but lately parameters are confusing me. function whatever(param1, param2) { int a; int b; if (param1 > param2){ some action; } return 0; } so without param1 and param2 being defined/initialized how does the above if statement determine how to run that if statement? Is it null until I define the params? I see a lot of code reference the parameters but IDK where their data comes from without defining them. I must have missed this page in my book. thank you in advance for responses.

8th Jul 2017, 6:15 PM
Joshua Queen
Joshua Queen - avatar
1 Answer
+ 5
Well thats just one of JS (annoying but simpler) attributes, data is dynamically typed, so they are known only at interpretation time.
8th Jul 2017, 6:24 PM
Karl T.
Karl T. - avatar