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

Help a JS virgin find that sweet spot

Name: Anonymous 2012-11-13 1:47

I'm practicing JS by trying to make a rock, paper, scissor game. 

I have failed.

Can /prog/ help a nigga out?

http://pastebin.com/2Sq06a0c

Everything is appreciated, just keep in mind I'm new as fuck to programming.

Name: Anonymous 2012-11-13 10:55

prompt() returns a string
player1 + player2 === "12" // true
player1 + player2 === 3 //nope
ihbt

Name: Anonymous 2012-11-13 11:43

>>8
The wonders of dynamic typing!

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