Skip to content
Snippets Groups Projects
Commit a0e30bac authored by BOGUET Thomas's avatar BOGUET Thomas
Browse files

Ex 6

parent 860e4763
No related branches found
No related tags found
No related merge requests found
......@@ -52,4 +52,15 @@ function deb5(): number {
}
return j;
}
console.log(deb5());
\ No newline at end of file
console.log(deb5());
// exercice6.ts
let tab1 = [1, 2, 3];
let tab2 = tab1;
tab1[1] = 5;
console.log(tab1, tab2);
let tab3 = [1, 2, 3];
let tab4 = [...tab3];
tab3[1] = 5;
console.log(tab3, tab4);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment