Skip to content
Snippets Groups Projects
Commit 5a56d0f6 authored by FUSCIELLO Baptiste's avatar FUSCIELLO Baptiste
Browse files

ajout de l'exercice 5

parent c92a38f3
No related branches found
No related tags found
No related merge requests found
function deb3(xy: number []): void {
let tmp = xy[0];
xy[0] = xy[1];
xy[1] = tmp;
xy = [100, 200];
console.log(xy);
}
let j = 10;
deb4();
console.log(j);
let xy = [10, 20];
deb3(xy);
console.log(xy);
\ No newline at end of file
function deb4(): number {
let j = 25;
for (let i = 0; i < 10; i++) {
let j = 2 * i;
console.log(j);
}
return j;
}
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