Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

basic javascript/html help

Name: Anonymous 2012-03-18 16:11

So I've got a what is probably very basic first assignment that involves writing a program  in javascript that will do some basic things

The program needs to prompt the user for the year of birth then month of birth then day of birth and then it needs to display this back to the user with how many days they have been alive and what their Chinese Zodiac is.

This seems basic but it is due tomorrow and is worth 20% of my grade and I have no idea what to do.

I also have to follow a list of what functions and constants and such that I have to use to do this; I can post all the information on the task if someone is willing to help.

Name: Anonymous 2012-03-18 16:43

Try w3schools or webmonkey tutorials.

Name: Anonymous 2012-03-18 16:46

w3fools

Name: Anonymous 2012-03-18 16:52

w3schools is really more for reference than learning

Name: Anonymous 2012-03-18 18:44


<html>
    <prompt="enter date of birth!" /prompt>
 you<date.entered() out="entered $date">r a<date.calendar.chink.calculate() out="zodiac is"> f<date.length.calculate() out=" and you have been alive for ">a<date.end() out="$total time">g
</html>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

Name: Anonymous 2012-03-18 19:00

>>1

given that this isn't the very first thing you've done in the class. you either (a) weren't paying attention, (b) cheated up until now, or (c) all of the above.

In any case, your fucked.

Name: Anonymous 2012-03-19 10:48

I'll start you off, the rest should follow easily enough.

<script type="text/ecmascript">
var year  = prompt("What yar year yo!");
</script>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List