User Profile

Collapse

Profile Sidebar

Collapse
boobikins
boobikins
Last Activity: May 25 '09, 07:28 PM
Joined: May 20 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • boobikins
    replied to help needed with function
    I have never used flag, so how can I get my function to work returning an overall true or false? Still stuggling...
    See more | Go to post

    Leave a comment:


  • boobikins
    replied to help needed with function
    Trying again...

    Thanks for the reply both,

    I'm trying to amend my code to take into account both suggestions and have come up with:

    Code:
    var drawnBalls = [1,2,3,4,5];
    var selectedBalls = [1,2,3,4,5];
    
    document.write(drawnBalls + '<BR>');
    document.write(selectedBalls + '<BR>');
    
    function allBallsMatch(drawnBalls, selectedBalls)
    	
    	{
    ...
    See more | Go to post

    Leave a comment:


  • boobikins
    started a topic help needed with function

    help needed with function

    Hi guys,

    I'm trying to complete a function that does the following:

    /* Tests if all balls selected match all balls drawn in the same order

    The function takes two arguments:
    an array of drawn balls
    an array of selected balls.

    The function code compares each ball in one array with the ball at the same position in the other array.

    The function...
    See more | Go to post

  • boobikins
    replied to object error
    Thanks for the advice, I cracked it!
    See more | Go to post

    Leave a comment:


  • boobikins
    replied to object error
    Stuck

    Code:
    <HTML>
    <HEAD>
    <TITLE>M150 TMA 5 : Programming : Task 3 - User selection of balls</TITLE>
    
    <SCRIPT language="JavaScript">
    
    
    
    
    function isAlreadySelected(newSelection, previousSelections)
    
    for (var index = 1; index <= previousSelections.length;index = index+ 1)
    
    {
    	if (newSelection == previousSelections)
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...