Skip to content
Snippets Groups Projects
Commit 7b1a1874 authored by MARCHAL Aurelien's avatar MARCHAL Aurelien
Browse files

Exercice 2 : point d'arret sur un tableau

parent 2742a7b0
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,20 @@ function deb1() {
}
console.log(j);
}
deb1();
// deb1();
//exo 2 : point d'arret pour un tableau
function deb2() {
let j = 0;
let tab = [];
for (let i = 0; i < 5; i++) {
j += i;
tab[i] = j;
}
console.log(tab);
}
deb2();
\ 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