Skip to content
Snippets Groups Projects
Commit 1498c89e authored by FEIPEL Aurelien's avatar FEIPEL Aurelien
Browse files

Exo3 pas finis

parent 76a306bc
No related branches found
No related tags found
No related merge requests found
function deb1(): number { function deb2(x: number, y: number): void {
let j = 200; const tmp = y;
let tab: number[] = new Array(10); y = x;
x = tmp;
console.log(x, y);
}
for (let i = 0; i < 10; i++) { let x = 10;
j -= 10; let y = 20;
tab[i] = j; deb2(x, y);
} console.log(x, y);
console.log(tab);
return j;
}
console.log(deb1());
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment