scripts

fun with java scripts

this semester, i started learning some html and javascripts. it started out to fill a gen ed requirement but next thing i know, i've got my own website... okay, i had help from you-know-who. but the scripts, i wrote all by myself. kinda random, but enjoy--

buttons and text boxes :: double, halve, add, and subtract



Your Number:

forms, buttons, and user-defined functions :: lottery game

Lotto Game
How old are you?

Guess a number between 1 and 10:





the task was to create a lottery game that allowed users over 16 to play but told users under 16 the game is not designed for them. the game uses the randomInt function to generate a random lottery number between 1 and 10 and a form to allow users to guess the lotto number. good simple fun.

pre defined functions :: greatest of three numbers

pre defined functions :: random number

prompts and nested quotes :: based on a true story