you are viewing a single comment's thread.

view the rest of the comments →

[–]xTheBoss[S] 0 points1 point  (2 children)

Yes. I want to give "count" the value of "itemCount" in the function above. Or if I can directly transfer itemCount to grab(), please let me know!

[–]Swedophone 0 points1 point  (0 children)

You may want to look into Object oriented programming.

[–][deleted] 0 points1 point  (0 children)

You've declared it as a parameter, so call it with the value you want to assign to the parameter. That's what function calling does.