Skip to content
Snippets Groups Projects
Commit bc3555b7 authored by SWIATOKA Maximilien's avatar SWIATOKA Maximilien
Browse files

Replace td_debug.ts

parent 64bbcf86
No related branches found
No related tags found
No related merge requests found
...@@ -52,10 +52,23 @@ ...@@ -52,10 +52,23 @@
// return j; // return j;
// } // }
//exercice 6 // //exercice 6
let tab1 = [1, 2, 3]; // let tab1 = [1, 2, 3];
let tab2 = [...tab1]; // let tab2 = [...tab1];
tab1[1] = 5; // tab1[1] = 5;
console.log(tab1, tab2); // console.log(tab1, tab2);
//exercice 7
// deb7(5, -3);
// function deb7(x: number, y: number): number {
// if( x = 0 || y = 0) return x*y;
// else if( x = 0 && y = 0) return - x*y;
// else return x * y;
// }
// console.log(deb7(5, -3));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment