From 08b5f96cee07b1d13828692061d4b98c234bb27c Mon Sep 17 00:00:00 2001 From: Darciaux Yoann <yoann.darciaux3@etu.univ-lorraine.fr> Date: Sun, 30 Mar 2025 00:06:52 +0100 Subject: [PATCH] Exercice 1 --- compte_rendu_debug.txt | 4 ++++ exo1.ts | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 exo1.ts diff --git a/compte_rendu_debug.txt b/compte_rendu_debug.txt index e69de29..f57d224 100644 --- a/compte_rendu_debug.txt +++ b/compte_rendu_debug.txt @@ -0,0 +1,4 @@ +Exercice 1: +placer point d'arrêt a la ligne 4 puis f5 pour suivre la valeur de j, +dans cette exercice, j'ai appris le débogage avec point d'arrêt ainsi qu'à suivre une variable dans une boucle + diff --git a/exo1.ts b/exo1.ts new file mode 100644 index 0000000..65ef307 --- /dev/null +++ b/exo1.ts @@ -0,0 +1,8 @@ +function deb1(): number { + let j = 200; + for (let i = 0; i < 10; i++) { + j -= 10; +} + return j; +} +console.log(deb1()); -- GitLab