Skip to content
Snippets Groups Projects
Commit 171f1f15 authored by BAILLY Clement's avatar BAILLY Clement
Browse files

TD Debug exo6

parent fe976eb2
No related branches found
No related tags found
No related merge requests found
......@@ -15,4 +15,5 @@ j = Uncaught ReferenceError : Cannot access 'j' from debugger
j = 0, j = 2, j = 4, j = 6, j = 8, j = 10, j = 12, j = 14, j = 16
j ne marche que dans la fonction.
6)
6) Les indices 1 des deux tableaux ont changé.
Seul le premier tableau à changer.
......@@ -35,7 +35,8 @@ function deb4():number{
}
let tab1= [1,2,3];
let tab2 = tab1;
let tab2 = [...tab1];
tab1[1] = 5;
console.log(tab1,tab2);
\ No newline at end of file
console.log(tab1,tab2);
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