Questions et réponses pour le function :

A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task. Use this tag for questions which specifically involve creating or calling functions. For help implementing a function to perform a task, use [algorithm] or a task-specific tag instead.

6
votes
function catRecord(name, birthdate, mother) { return {name: name, birth: birthdate, mother: mother}; } My understanding of a constructor is a function is used to build up the object.Would this ...

6
votes
Je suis juste curieux. En PHP, pourquoi ECHO est-il implémenté comme fonction? Pourquoi PHP n'a-t-il pas simplement donné printf et ne parle ja ...


6
votes
J'ai deux fonctions dans C: void function1(){ // do something } void function2(){ // do something while doing that } ...