diff --git a/exo6_2_debug.ts b/exo6_2_debug.ts new file mode 100644 index 0000000000000000000000000000000000000000..92b7f44ac8b391a386cf85c51bd6112dc302f15f --- /dev/null +++ b/exo6_2_debug.ts @@ -0,0 +1,6 @@ +let tab1 = [1, 2, 3]; +let tab2 = [...tab1]; + +tab1[1] = 5; + +console.log(tab1, tab2); \ No newline at end of file diff --git a/exo6_debug.ts b/exo6_debug.ts new file mode 100644 index 0000000000000000000000000000000000000000..713b1a02fb8d559c4cba4473830664d3407335bb --- /dev/null +++ b/exo6_debug.ts @@ -0,0 +1,6 @@ +let tab1 = [1, 2, 3]; +let tab2 = tab1; + +tab1[1] = 5; + +console.log(tab1, tab2); \ No newline at end of file