The JavaScript Guessing Game

Please enter a number between 1 and 999
and I will attempt to guess your number in 10 tries.