convertisseur dactylographié à Java
// Enjoy TypeScript :)
var helloWorld: string = "Hello, world!";
var cardType: number[] = [];
function createData(): number[]{
let arr : number[];
let dem = 0;
let a = 0;
while(dem < 52){
arr.push(dem, a);
this.cardType.push(arr);
a++;
if(a == 3)
{
arr = [];
a = 0;
dem++;
}
}
return this.cardType;
}
this.cardType = this.createData();
console.log(this.cardType);
Thanh Le