Posts by Guima • 1 point
1 post
-
-1
votes2
answers290
viewsA: Write a Naipedetruco(suit) function that returns an array of strings with the numbers + suits of the cards
function naipeDeTruco(naipe){ var arrayDeNaipes= []; for (var i=1; i <=12; i++){ **if((naipe == "espadas") && ([i]!=8) && ([i]!=9))**{//Retira o !=10…
javascriptanswered Guima 1