Been a while I know, but I could do with some help. I'm not sure if this is possible within js but I want to stick arrays within an arrays, retrive a specific array and display it. This current code returns puzzleHolder as undefined. Any idea why?
I think after this it's a very simple process of displaying the sample puzzles.
var difficulty = new Array(Easy, Normal, Hard);
var puzzle_1 = "400537091900100200850000004509080003700020405040000700108409000020050060000003000";
Easy = puzzle_1.split("");
var puzzle_2 = "240057360000008009378000200060041702080000005000005010130000000050003026000812000";
Medium = puzzle_2.split("");
var puzzle_3 = "500127008000000020039000000040070600006000002800030009005700000000400580170090300";
Hard = puzzle_3.split("");
for( var q = 0; q < difficulty.length; q++)
var temp_string = difficulty[q].toString();
if( choice == temp_string )
puzzleHolder = difficulty[temp_string];