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

javascript help with variables

Name: Anonymous 2012-11-03 13:02

With some help, I wrote this javascript.

http://pastebin.com/uSSZp0j6

I don't understand how to add more than one variable to a variable, I need for there to be several "keycodes," not just one. Other than that, the script works fine.

Name: Anonymous 2012-11-03 21:56


var keycodes = new Array("apples", "grapes", "oranges")

x = "incorrect"
for (i = 0; i < keycodes.length; i++)
  if (y == keycodes[i])
    x = "correct"

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