Skip to content
Snippets Groups Projects
Commit ca94704b authored by BOGUET Thomas's avatar BOGUET Thomas
Browse files

Ex 3

parent 5654287a
No related branches found
No related tags found
No related merge requests found
......@@ -18,4 +18,16 @@ function deb1_1(): void {
}
console.log(tab);
}
deb1_1();
\ No newline at end of file
deb1_1();
// exercice3
function deb3(x: number, y: number): void {
const tmp = y;
y = x;
x = tmp;
console.log(x, y);
}
let x = 10;
let y = 20;
deb3(x, y);
console.log(x, y);
\ No newline at end of file
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