We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
Function constructor
Il est également possible de définir des fonctions en utilisant le constructeur Function et une expression de fonction.
You can also define functions using the Function constructor and a function expression.
À la différence des fonctions définies par les expressions de fonction ou par le constructeur Function, une fonction définie par une déclaration de fonction pourra être utilisée avant la déclaration.
Unlike functions defined by function expressions or by the Function constructor, a function defined by a function declaration can be used before the function declaration itself.
En revanche, les fonctions définies par le constructeur Function n'héritent que de la portée globale (portée héritée par toutes les fonctions).
On the other hand, a function defined by a Function constructor does not inherit any scope other than the global scope (which all functions inherit).
Ainsi, lorsqu'elles sont exécutées, elles ne peuvent accéder qu'aux variables globales et à leurs propres valeurs locales. Elles ne peuvent pas accéder aux variables de la portée dans laquelle le constructeur Function a été invoqué.
When running them, they will only be able to access their own local variables and global ones, not the ones from the scope in which the Function constructor was called.
Les fonctions définies par les expressions et les déclarations de fonctions ne sont analysées (parsées) qu'une seule fois. Celles définies grâce au constructeur Function ne le sont pas.
Functions defined by function expressions and function declarations are parsed only once, while those defined by the Function constructor are not.
Description Les objets Function créés avec le constructeur Function sont évalués à chaque utilisation.
Function objects created with the Function constructor are evaluated each time they are used.
Il est également possible de définir des fonctions à l'aide du constructeur Function, de l'argument functionBody et d'au moins une expression yield et d'une expression de fonction génératrice historique.
You can also define functions using the Function constructor with functionBody and at least one yield expression, and a legacy generator function expression.
Le constructeur Function crée un nouvel objet Function.
The Function constructor creates a new Function object.
Le constructeur Function est lui-même un objet Function.
The Function constructor is itself a Function object.
Si un bloc est passé en argument, il sera converti en une fonction en utilisant le constructeur function.
If a block is provided as argument, it will be converted to a function using the function constructor.
Et bien, une fonction est aussi un type d'objet - vous pouvez jeter un œil à la documentation du constructeur Function() si vous ne nous croyez pas.
Well, a function is also a type of object - see the Function() constructor reference if you don't believe us.
Les objets Function créés avec le constructeur Function sont analysés quand la fonction est créée.
Les fonctions créées avec le constructeur Function() ne créent pas de fermetures liées au contexte de leur création.
Note: async functions created with the AsyncFunction constructor do not create closures to their creation contexts; they are always created in the global scope.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.
Er zijn geen resultaten gevonden voor deze term.
Synoniemen voor constructeur Function in het Frans