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.
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 ...
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' ...