Results 1 to 2 of 2
  1. #1
    joelmappa is offline Member
    Join Date
    Sep 2015
    Rep Power

    Post Correct my script

    // Check if the user is ready to play!
    confirm("I am ready to play!");
    var age=prompt("What is your age?")
    if (age<13){
    console.log("GET **** OUT OF HERE")}
    console.log("Welcome player!")
    console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'")
    console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")

    var userAnswer=prompt("Do you want to race Bieber on stage?")
    if userAnswer=("yes")
    console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
    console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
    i think the error on var i am new on learning java and want to tell me where the error
    Last edited by Norm; 09-27-2015 at 06:00 PM. Reason: removed word

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: Correct my script

    That looks like javascript, not java. Try a javascript forum.
    If you don't understand my response, don't ignore it, ask a question.

Similar Threads

  1. Replies: 5
    Last Post: 05-24-2013, 07:11 AM
  2. can u tell me w/c one is correct?
    By akocnivek in forum New To Java
    Replies: 4
    Last Post: 10-21-2012, 10:03 AM
  3. Please help - can't seem to correct this...
    By jmjbreezin in forum New To Java
    Replies: 7
    Last Post: 05-09-2011, 01:39 PM
  4. keyTyped is it correct
    By aizen92 in forum New To Java
    Replies: 18
    Last Post: 04-03-2011, 01:47 PM
  5. Getting correct output
    By WarmRegards in forum New To Java
    Replies: 9
    Last Post: 11-01-2009, 04:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts