This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Reducing the amount of times the Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reducing the amount of times the "function" command is called" Watch "Reducing the amount of times the "function" command is called" New topic
Author

Reducing the amount of times the "function" command is called

Henry Enfray
Greenhorn

Joined: Apr 26, 2012
Posts: 4
Hi, I'm new to this forum and I'm a beginner programming. Thus, I hope to have help in learning how to program. My question is I'm trying to change the game program below so that the function command is used much less. Below, the function command had been called about 20 times, and I'm trying to rearrange it and/or make it so that the function command be used just 5 times or less, or as minimal amount of times as possible (because too many function commands for me gets confusing and I'm just trying to simplify it more). Thus, I was wondering what to do. Thanks.

Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2833
    
  11

This definitely isn't Java. It looks like it could be JavaScript, so let's try it over in that forum.
Henry Enfray
Greenhorn

Joined: Apr 26, 2012
Posts: 4
Greg Charles wrote:This definitely isn't Java. It looks like it could be JavaScript, so let's try it over in that forum.


Ok thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reducing the amount of times the "function" command is called
 
Similar Threads
Using Up/Down Arrow Key to Move in a table
Scroll Rows of a Table One at a Time
AutoTab tabbing two fields if second one has value...
keyCode - firefox
Up Arrow key press problem on IE