René's URL Explorer Experiment


Title: GeneratorFunction - JavaScript | MDN

Open Graph Title: GeneratorFunction - JavaScript | MDN

Description: En JavaScript, chaque fonction génératrice est en réalité un objet GeneratorFunction. Il n'existe pas d'objet global avec le nom GeneratorFunction, mais il est possible de créer un constructeur GeneratorFunction() avec le code suivant :

Open Graph Description: En JavaScript, chaque fonction génératrice est en réalité un objet GeneratorFunction. Il n'existe pas d'objet global avec le nom GeneratorFunction, mais il est possible de créer un constructeur GeneratorFunction() avec le code suivant :

Opengraph URL: https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction

direct link

Domain: developer.mozilla.org

og:localefr
og:imagehttps://developer.mozilla.org/mdn-social-share.d893525a4fb5fb1f67a2.png
og:image:typeimage/png
og:image:height1080
og:image:width1920
og:image:altThe MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.
og:site_nameMDN Web Docs
twitter:cardsummary_large_image
twitter:creatorMozDevNet
position5

Links:

Skip to main contenthttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#content
Skip to searchhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#search
MDN https://developer.mozilla.org/fr/
HTML: Markup languagehttps://developer.mozilla.org/fr/docs/Web/HTML
Elementshttps://developer.mozilla.org/fr/docs/Web/HTML/Reference/Elements
Global attributeshttps://developer.mozilla.org/fr/docs/Web/HTML/Reference/Global_attributes
Attributeshttps://developer.mozilla.org/fr/docs/Web/HTML/Reference/Attributes
See all…https://developer.mozilla.org/fr/docs/Web/HTML/Reference
Responsive imageshttps://developer.mozilla.org/fr/docs/Web/HTML/Guides/Responsive_images
HTML cheatsheethttps://developer.mozilla.org/fr/docs/Web/HTML/Guides/Cheatsheet
Date & time formatshttps://developer.mozilla.org/fr/docs/Web/HTML/Guides/Date_and_time_formats
See all…https://developer.mozilla.org/fr/docs/Web/HTML/Guides
SVGhttps://developer.mozilla.org/fr/docs/Web/SVG
MathMLhttps://developer.mozilla.org/fr/docs/Web/MathML
XMLhttps://developer.mozilla.org/fr/docs/Web/XML
CSS: Styling languagehttps://developer.mozilla.org/fr/docs/Web/CSS
Propertieshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/Properties
Selectorshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/Selectors
At-ruleshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/At-rules
Valueshttps://developer.mozilla.org/fr/docs/Web/CSS/Reference/Values
See all…https://developer.mozilla.org/fr/docs/Web/CSS/Reference
Box modelhttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Box_model/Introduction
Animationshttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Animations/Using
Flexboxhttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Flexible_box_layout/Basic_concepts
Colorshttps://developer.mozilla.org/fr/docs/Web/CSS/Guides/Colors/Applying_color
See all…https://developer.mozilla.org/fr/docs/Web/CSS/Guides
Column layoutshttps://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook/Column_layouts
Centering an elementhttps://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook/Center_an_element
Card componenthttps://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook/Card
See all…https://developer.mozilla.org/fr/docs/Web/CSS/How_to/Layout_cookbook
JavaScript: Scripting languagehttps://developer.mozilla.org/fr/docs/Web/JavaScript
Standard built-in objectshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects
Expressions & operatorshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Operators
Statements & declarationshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements
Functionshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Functions
See all…https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference
Control flow & error handinghttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Control_flow_and_error_handling
Loops and iterationhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Loops_and_iteration
Working with objectshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Working_with_objects
Using classeshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Guide/Using_classes
See all…https://developer.mozilla.org/fr/docs/Web/JavaScript/Guide
Web APIs: Programming interfaceshttps://developer.mozilla.org/fr/docs/Web/API
File system APIhttps://developer.mozilla.org/fr/docs/Web/API/File_System_API
Fetch APIhttps://developer.mozilla.org/fr/docs/Web/API/Fetch_API
Geolocation APIhttps://developer.mozilla.org/fr/docs/Web/API/Geolocation_API
HTML DOM APIhttps://developer.mozilla.org/fr/docs/Web/API/HTML_DOM_API
Push APIhttps://developer.mozilla.org/fr/docs/Web/API/Push_API
Service worker APIhttps://developer.mozilla.org/fr/docs/Web/API/Service_Worker_API
See all…https://developer.mozilla.org/fr/docs/Web/API
Using the Web animation APIhttps://developer.mozilla.org/fr/docs/Web/API/Web_Animations_API/Using_the_Web_Animations_API
Using the Fetch APIhttps://developer.mozilla.org/fr/docs/Web/API/Fetch_API/Using_Fetch
Working with the History APIhttps://developer.mozilla.org/fr/docs/Web/API/History_API/Working_with_the_History_API
Using the Web speech APIhttps://developer.mozilla.org/fr/docs/Web/API/Web_Speech_API/Using_the_Web_Speech_API
Using web workershttps://developer.mozilla.org/fr/docs/Web/API/Web_Workers_API/Using_web_workers
All web technologyhttps://developer.mozilla.org/fr/docs/Web
Accessibilityhttps://developer.mozilla.org/fr/docs/Web/Accessibility
HTTPhttps://developer.mozilla.org/fr/docs/Web/HTTP
URIhttps://developer.mozilla.org/fr/docs/Web/URI
Web extensionshttps://developer.mozilla.org/fr/docs/Mozilla/Add-ons/WebExtensions
WebAssemblyhttps://developer.mozilla.org/fr/docs/WebAssembly
WebDriverhttps://developer.mozilla.org/fr/docs/Web/WebDriver
See all…https://developer.mozilla.org/fr/docs/Web
Mediahttps://developer.mozilla.org/fr/docs/Web/Media
Performancehttps://developer.mozilla.org/fr/docs/Web/Performance
Privacyhttps://developer.mozilla.org/fr/docs/Web/Privacy
Securityhttps://developer.mozilla.org/fr/docs/Web/Security
Progressive web appshttps://developer.mozilla.org/fr/docs/Web/Progressive_web_apps
Learn web developmenthttps://developer.mozilla.org/fr/docs/Learn_web_development
Getting started moduleshttps://developer.mozilla.org/fr/docs/Learn_web_development/Getting_started
Core moduleshttps://developer.mozilla.org/fr/docs/Learn_web_development/Core
MDN Curriculumhttps://developer.mozilla.org/en-US/curriculum/
Structuring content with HTML modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/Structuring_content
CSS styling basics modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/Styling_basics
CSS layout modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/CSS_layout
Dynamic scripting with JavaScript modulehttps://developer.mozilla.org/fr/docs/Learn_web_development/Core/Scripting
Playgroundhttps://developer.mozilla.org/en-US/play
HTTP Observatoryhttps://developer.mozilla.org/en-US/observatory
Border-image generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_backgrounds_and_borders/Border-image_generator
Border-radius generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_backgrounds_and_borders/Border-radius_generator
Box-shadow generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_backgrounds_and_borders/Box-shadow_generator
Color format converterhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_colors/Color_format_converter
Color mixerhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_colors/Color_mixer
Shape generatorhttps://developer.mozilla.org/fr/docs/Web/CSS/CSS_shapes/Shape_generator
About MDNhttps://developer.mozilla.org/en-US/about
Advertise with ushttps://developer.mozilla.org/en-US/advertising
Communityhttps://developer.mozilla.org/en-US/community
MDN on GitHubhttps://github.com/mdn
Bloghttps://developer.mozilla.org/en-US/blog/
Webhttps://developer.mozilla.org/fr/docs/Web
JavaScripthttps://developer.mozilla.org/fr/docs/Web/JavaScript
Référencehttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference
Objets natifs standardshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects
GeneratorFunctionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://github.com/orgs/mdn/discussions/739
https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
Vous pouvez contribuer en rejoignant la communauté francophone sur MDN Web Docs.https://developer.mozilla.org/fr/docs/MDN/Community/Contributing/Translated_content#langues_actives
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
Learn more https://developer.mozilla.org/fr/docs/Glossary/Baseline/Compatibility
See full compatibility https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#compatibilité_des_navigateurs
Report feedback https://survey.alchemer.com/s3/7634825/MDN-baseline-feedback?page=%2Ffr%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects%2FGeneratorFunction&level=high
Descriptionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#description
Exempleshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#exemples
Spécificationshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#spécifications
Compatibilité des navigateurshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#compatibilité_des_navigateurs
Voir aussihttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#voir_aussi
Descriptionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#description
fonctions génératriceshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements/function*
une expression function*https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements/function*
fonctions génératriceshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements/function*
eval()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/eval
Exempleshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#exemples
Créer un générateur en utilisant le constructeur GeneratorFunction()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#créer_un_générateur_en_utilisant_le_constructeur_generatorfunction
Spécificationshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#spécifications
ECMAScript® 2026 Language Specification# sec-generatorfunction-objectshttps://tc39.es/ecma262/multipage/control-abstraction-objects.html#sec-generatorfunction-objects
Compatibilité des navigateurshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#compatibilité_des_navigateurs
Voir aussihttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction#voir_aussi
function*https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements/function*
function*https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Operators/function*
Functionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function
functionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Statements/function
functionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Operators/function
Les fonctions et portées de fonctionshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Functions
Learn how to contributehttps://developer.mozilla.org/fr/docs/MDN/Community/Getting_started
contributeurs du MDNhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction/contributors.txt
View this page on GitHubhttps://github.com/mdn/translated-content/blob/main/files/fr/web/javascript/reference/global_objects/generatorfunction/index.md?plain=1
Report a problem with this contenthttps://github.com/mdn/translated-content/issues/new?template=page-report-fr.yml&mdn-url=https%3A%2F%2Fdeveloper.mozilla.org%2Ffr%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects%2FGeneratorFunction&metadata=%3C%21--+Do+not+make+changes+below+this+line+--%3E%0A%3Cdetails%3E%0A%3Csummary%3EPage+report+details%3C%2Fsummary%3E%0A%0A*+Folder%3A+%60fr%2Fweb%2Fjavascript%2Freference%2Fglobal_objects%2Fgeneratorfunction%60%0A*+MDN+URL%3A+https%3A%2F%2Fdeveloper.mozilla.org%2Ffr%2Fdocs%2FWeb%2FJavaScript%2FReference%2FGlobal_Objects%2FGeneratorFunction%0A*+GitHub+URL%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Ftranslated-content%2Fblob%2Fmain%2Ffiles%2Ffr%2Fweb%2Fjavascript%2Freference%2Fglobal_objects%2Fgeneratorfunction%2Findex.md%0A*+Last+commit%3A+https%3A%2F%2Fgithub.com%2Fmdn%2Ftranslated-content%2Fcommit%2F53b2624681b9871b27425718a334f9144f3011fb%0A*+Document+last+modified%3A+2024-08-08T12%3A12%3A16.000Z%0A%0A%3C%2Fdetails%3E
Objets natifs standardshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects
GeneratorFunctionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction
GeneratorFunction()https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction/GeneratorFunction
prototypehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction/prototype
Functionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function
Constructeur Function()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/Function
Function.prototype.apply()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
Function.prototype.bind()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
Function.prototype.call()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/call
Function.prototype.toString()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/toString
[Symbol.hasInstance]()https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Symbol.hasInstance
Function.displayNamehttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName
Function.lengthhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/length
Function.namehttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/name
prototypehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype
Function.argumentshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments
Function.callerhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/caller
Object/Functionhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object
Function.prototype.apply()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
Function.prototype.bind()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/bind
Function.prototype.call()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/call
Function.prototype.toString()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/toString
[Symbol.hasInstance]()https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/Symbol.hasInstance
Function.displayNamehttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/displayName
Function.lengthhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/length
Function.namehttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/name
prototypehttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/prototype
Function.argumentshttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/arguments
Function.callerhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Function/caller
Object.prototype.__defineGetter__()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineGetter__
Object.prototype.__defineSetter__()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/__defineSetter__
Object.prototype.__lookupGetter__()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupGetter__
Object.prototype.__lookupSetter__()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/__lookupSetter__
Object.prototype.hasOwnProperty()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty
Object.prototype.isPrototypeOf()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf
Object.prototype.propertyIsEnumerable()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable
Object.prototype.toLocaleString()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString
Object.prototype.toString()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/toString
Object.prototype.valueOf()https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf
Object.prototype.__proto__https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/proto
Object.prototype.constructorhttps://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor
https://developer.mozilla.org/
https://github.com/mdn/
https://bsky.app/profile/developer.mozilla.org
https://x.com/mozdevnet
https://mastodon.social/@mdn
https://developer.mozilla.org/en-US/blog/rss.xml
About https://developer.mozilla.org/en-US/about
Blog https://developer.mozilla.org/en-US/blog/
Mozilla careers https://www.mozilla.org/en-US/careers/listings/
Advertise with us https://developer.mozilla.org/en-US/advertising
MDN Plus https://developer.mozilla.org/en-US/plus
Product help https://support.mozilla.org/products/mdn-plus
MDN Community https://developer.mozilla.org/en-US/community
Community resources https://developer.mozilla.org/en-US/docs/MDN/Community
Writing guidelines https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines
MDN Discord https://developer.mozilla.org/discord
MDN on GitHub https://github.com/mdn
Web technologies https://developer.mozilla.org/en-US/docs/Web
Learn web development https://developer.mozilla.org/en-US/docs/Learn_web_development
Guides https://developer.mozilla.org/en-US/docs/MDN/Guides
Tutorials https://developer.mozilla.org/en-US/docs/MDN/Tutorials
Glossary https://developer.mozilla.org/en-US/docs/Glossary
Hacks blog https://hacks.mozilla.org/
https://www.mozilla.org/
Website Privacy Noticehttps://www.mozilla.org/privacy/websites/
Telemetry Settingshttps://www.mozilla.org/en-US/privacy/websites/data-preferences/
Legalhttps://www.mozilla.org/about/legal/terms/mozilla
Community Participation Guidelineshttps://www.mozilla.org/about/governance/policies/participation/
Mozilla Corporationhttps://www.mozilla.org/
Fondation Mozillahttps://foundation.mozilla.org/
une licence Creative Commonshttps://developer.mozilla.org/docs/MDN/Writing_guidelines/Attrib_copyright_license

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.