+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Jan 2009

    Prob a simple thing... help please


    I am just finishing my first JavaScript assignment & have managed most of it fine. Unfortunately i have been tearing my hair out for the last hour or so.

    I am having problems with the '' sign. However i try to add it, my end result comes up like this..

    Delivery will be £6

    and i obviously want

    Delivery will be 6

    How do i get rid of the big A beforehand?????

    Any help much appreciated

    This is my code

    <SCRIPT LANGUAGE = "JavaScript">

    var distance;
    var extraDistance;

    distance = window.prompt('Please enter the distance in miles', '');
    distance = parseFloat(distance);
    extraDistance = (distance -3)
    if (distance <3)
    document.write('Delivery is free');
    if (distance < 12)
    document.write('Delivery will be ' + extraDistance);
    if (distance > 12)
    document.write('We do not deliver over 12 miles');


    Thanks in advance

  2. #2
    Junior Member
    Join Date
    Jan 2009

Quick Reply Quick Reply

If you are already a member, please login above.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple question, simple answer...I hope.
    By kev4956 in forum PC Hardware
    Replies: 8
    Last Post: March 11th, 2005, 04:05 PM
  2. Looking for Simple Software for Simple Video Editing
    By mastavic in forum PC Hardware
    Replies: 3
    Last Post: December 7th, 2004, 07:59 AM
  3. Simple problem with simple answer...but i still dont know how
    By Iknownothing in forum Technical Support
    Replies: 3
    Last Post: July 14th, 2004, 06:31 PM
  4. DVD prob; CDRW prob; Graphics prob
    By Good Companion in forum Technical Support
    Replies: 4
    Last Post: January 1st, 2003, 12:58 PM
  5. Windows98se simple thing??
    By RampageIII in forum Applications and Operating Systems
    Replies: 4
    Last Post: November 25th, 2001, 01:21 AM

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
Copyright 2014 All Enthusiast, Inc