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.

0
votes
J'ai deux listes comme suit: for i in range(len(a)): for j in range(len(b)): if a[i] == b[i]: print (a[i]) Je voudrais avoir un print (une fon ...

0
votes
J'ai ces deux fonctions qui sont presque identiques à part l'instruction if dans search_genre, y a-t-il un moyen de les combiner en une seule? La variable books est un dictionnaire o&ug ...

0
votes
J'ai quelque chose qui ressemble à un tableau 2D. typeof certains tableaux renverront toujours un objet . Alors, pourquoi dans l'exe ...

0
votes
J'ai cherché, mais je n'ai pas trouvé de solution à mon problème. Je ne suis pas un expert JS, juste un novice, mais je ne comprends pas pourquoi cela ne fonctionne qu' ...