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 {
let j = 200;
let tab: number[] = new Array(10);
function deb2(x: number, y: number): void {
const tmp = y;
y = x;
x = tmp;
console.log(x, y);
}
for (let i = 0; i < 10; i++) {
j -= 10;
tab[i] = j;
}
let x = 10;
let y = 20;
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.
Finish editing this message first!
Please register or to comment