diff --git a/exo6.ts b/exo6.ts new file mode 100644 index 0000000000000000000000000000000000000000..9e6fa3f8dd9b14d971ba0c52fe5587c123857d2b --- /dev/null +++ b/exo6.ts @@ -0,0 +1,6 @@ +let tab1 = [1, 2, 3]; +let tab2 = [...tab1]; + +tab1[1] = 5; + +console.log(tab1, tab2);