diff --git a/exo4.ts b/exo4.ts index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9c970c349d4848f42809c74e70f46fbd549775d4 100644 --- a/exo4.ts +++ b/exo4.ts @@ -0,0 +1,10 @@ +function deb3(xy: number[]): void { + xy[0] = 100; + xy[1] = 200; + + console.log(xy); +} + +let xy = [10, 20]; +deb3(xy); +console.log(xy); \ No newline at end of file