Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
typescript_feipel_aurélien
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
FEIPEL Aurelien
typescript_feipel_aurélien
Commits
26611f62
Commit
26611f62
authored
2 weeks ago
by
Aurélien
Browse files
Options
Downloads
Patches
Plain Diff
Ex5 finis
parent
8ae08cd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tpDebug5.ts
+27
-0
27 additions, 0 deletions
tpDebug5.ts
with
27 additions
and
0 deletions
tpDebug5.ts
0 → 100644
+
27
−
0
View file @
26611f62
let
j
=
10
;
deb4
();
console
.
log
(
j
);
function
deb4
():
number
{
let
j
=
25
;
for
(
let
i
=
0
;
j
<
10
;
i
++
)
{
let
j
=
2
*
i
;
console
.
log
(
j
);
}
return
j
;
}
/*
j = 10.
À l’entrée de deb4() :
Nouvelle variable j = 25
La boucle for (let i = 0; j < 10; i++) ne s’exécute pas, car 25 < 10 est faux.
Sortie de la fonction :
Retourne 25, mais cette valeur n’est pas affichée.
Le j global reste à 10.
Après l’appel de deb4() :
console.log(j) affiche 10. */
\ 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