Skip to content
Snippets Groups Projects
Commit 9a575d2e authored by ahmetbsbnr's avatar ahmetbsbnr
Browse files

ajout en retard de l'exos debug

parent 032dfc66
No related branches found
No related tags found
No related merge requests found
ex1.ts 0 → 100644
function deb1(): number {
let j = 200;
for (let i = 0; i < 10; i++) {
j -= 10; // ← placez votre breakpoint ici
}
return j;
}
ex2.ts 0 → 100644
ex3.ts 0 → 100644
function deb2(x: number, y: number): void {
const tmp = y;
y = x;
x = tmp;
console.log(x,y);
}
let x = 10;
let y = 20;
deb2(x, y);
console.log(x,y);
ex4.ts 0 → 100644
ex5.ts 0 → 100644
ex6.ts 0 → 100644
let tab1 = [1, 2, 3];
let tab2 = tab1;
tab1[0] = 5;
console.log(tab1, tab2);
//let tab1 = [1, 2, 3];
//let tab2 = [...tab1];
//tab1[1] = 5;
//console.log(tab1, tab2);
\ No newline at end of file
ex7.ts 0 → 100644
deb7(5, 3);
function deb7(x: number, y: number): number {
let val = 0;
for (let i = 0; i < x; i++) {
val += x;
}
return val;
}
\ No newline at end of file
ex8.ts 0 → 100644
let n=5;
console.log(deb(n));
function deb8(n: number): number {
if (n===0) {
return 1;
}
let valeur n = n $ deb8(n-1);
return valeur;
}
\ No newline at end of file
console.log("1")
console.log("2")
tx.txt 0 → 100644
/Users/ahmetbasbunar/.deno/bin/deno
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment