Skip to content
Snippets Groups Projects
Commit 86f2594b authored by SWIATOKA Maximilien's avatar SWIATOKA Maximilien
Browse files

Replace td_debug.ts

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