Réponse

MessageMixer.countLetters = countLetters(){};

Colonne
Explication

In addition to to setting each function as a property on the MessageMixer object, notice that several functions depend on another function to be called.

The reverseAllWords() function, for instance, calls the reverseWord() in its function body. In order for this function to work, reverseWord() must be prepended by MessageMixer.

Question

Transformer toutes les fonctions (ex: countLetters()) d'un module en propriété de ma variable MessageMixer

Thématique