#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2012
    Posts
    1
    Rep Power
    0

    Question Why won't this work?


    alert("Hello!");
    if (console.log (prompt ("Name?").length >= 10));
    {
    alert ("Too long! Retry!")
    }
    else
    {
    alert ("Welcome to this game, I made which has no point.");
    }

    console.log ;alert ("Welcome to zombie simulator, by Steven Piper.");
    console.log ;alert ("You go outside and there is nobody around. You notice a car and a bike.");
    console.log ;prompt ("Which shall you take? BIKE or CAR");
  2. #2
  3. Daniel Schildsky
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Mar 2004
    Location
    KL, Malaysia.
    Posts
    1,553
    Rep Power
    1621

    Javascript != Java


    This is a java forum, not a javascript forum. Please move your post to Javascript forum instead.
    When the programming world turns decent, the real world will turn upside down.
  4. #3
  5. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1014
    Hi,

    even then I don't see how we could help you with that. You simply need to learn the syntax. Currently, your use of semicolons is completely random. Open the JavaScript console of your browser and work your way through the error messages.

IMN logo majestic logo threadwatch logo seochat tools logo