Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
typescript_bailly_clement
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BAILLY Clement
typescript_bailly_clement
Commits
adcdb049
Commit
adcdb049
authored
1 week ago
by
BAILLY Clement
Browse files
Options
Downloads
Patches
Plain Diff
TD Debug exo3
parent
da4ac5b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
qualdev/compte_rendu_debug.txt
+4
-2
4 additions, 2 deletions
qualdev/compte_rendu_debug.txt
qualdev/qualdev/debug1.ts
+13
-1
13 additions, 1 deletion
qualdev/qualdev/debug1.ts
with
17 additions
and
3 deletions
qualdev/compte_rendu_debug.txt
+
4
−
2
View file @
adcdb049
Exercice
1
:
Exercice :
1) On place le point d'arret à la ligne "j -= 10;" afin d'obtenir les valeurs successives de j.
2) On place le point d'arret sur l'affection de tab.
3)
3) x=10, y=20 ; x=10, y=10 ; x=20, y=10; Le dernier console.log affiche x=10, y=20.
On utilise echanger comme nom pour la fonction. La fonction ne fonctionne pas car les valeurs échangées sont uniquement à l'intérieur de la fonction.
4)
This diff is collapsed.
Click to expand it.
qualdev/qualdev/debug1.ts
+
13
−
1
View file @
adcdb049
...
...
@@ -7,4 +7,16 @@ function deb1():number{
}
return
j
;
}
console
.
log
(
deb1
());
\ No newline at end of file
function
echanger
(
x
:
number
,
y
:
number
):
void
{
const
tmp
=
y
;
y
=
x
;
x
=
tmp
;
console
.
log
(
x
,
y
)
}
let
x
=
10
;
let
y
=
20
;
echanger
(
x
,
y
);
console
.
log
(
x
,
y
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment