From 797abf926eec27388be1718645c6efb85db6cbcb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien?= <tonemail@example.com>
Date: Fri, 28 Mar 2025 15:53:05 +0100
Subject: [PATCH] Ex6 p2

---
 tpDebug6.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tpDebug6.ts b/tpDebug6.ts
index 141af6d..0e6c4b2 100644
--- a/tpDebug6.ts
+++ b/tpDebug6.ts
@@ -1,8 +1,8 @@
-let tab1 = [1,2,3 ];
-let tab2 = tab1;
+let tab1 = [1,2,3];
+let tab2 = [...tab1];
 
 tab1[1] = 5;
 
 console.log(tab1, tab2);
 
-/* tab1 et tab2 pointent vers le même tableau donc modifier tab 1 modifie tab2 */
\ No newline at end of file
+/* 1) tab1 et tab2 sont des tableaux différents donc modifier tab1 ne modifie pas tab2 */
\ No newline at end of file
-- 
GitLab