And you added the breaks for the second switch statement also?
switch(j){
case 1: card = card.concat("of Hearts"); break;
case 2: card = card.concat("of Diamonds"); break;
...
If so,...
Type: Posts; User: bbr201
And you added the breaks for the second switch statement also?
switch(j){
case 1: card = card.concat("of Hearts"); break;
case 2: card = card.concat("of Diamonds"); break;
...
If so,...
If you use switch/case you should add a break after every case, otherwise it will fall through to the other cases.
switch(i){
case 1: card = card.concat("Two "); break;
case 2: card =...