From c67d157b4b6bcfef29875597f50afee5642bc9ae Mon Sep 17 00:00:00 2001 From: MALLINGER Robin <robin.mallinger1@etu.univ-lorraine.fr> Date: Mon, 31 Mar 2025 10:00:22 +0200 Subject: [PATCH] corrdction_bug --- exo3.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/exo3.ts b/exo3.ts index e69de29..1c0a893 100644 --- a/exo3.ts +++ b/exo3.ts @@ -0,0 +1,11 @@ +function deb2(x: number, y:number): void { + const tmp = y; + y = x; + x = tmp; + console.log(x, y); +} + +let x = 10; +let y = 20; +deb2(x, y); +console.log(x, y); -- GitLab