+ 1

me podrian ayudar, no entiendo como debería hacerlo

Estás haciendo un encriptador de texto. Debería tomar múltiples palabras y producir una versión combinada, donde cada palabra está separada por un signo de dólar $. Por ejemplo, para las palabras "hello", "how", "are", "you", la salida debe ser "$hello$how$are$you

quot;. El código dado declara una clase llamada Add, con un constructor que toma un parámetro de descanso. Completa el código añadiendo un método print() a la clase, que debería generar la salida solicitada.

23rd Feb 2022, 11:10 AM
Jorge Andrés Florido Montealegre
2 Antworten
+ 3
let words = ["hello", "how", "are", "you"]; window.onload = () => { console.log('
#x27;+words.join('
#x27;)+'
#x27;); // or let s="
quot;; words.forEach(function(word) { s += `${word} ; }) console.log(s); } https://code.sololearn.com/WX3q3h6a1CoV Good Luck
23rd Feb 2022, 12:29 PM
SoloProg
SoloProg - avatar
+ 2
To gain most of community at least use translator, you can also translate answers to your language to understand. Here is translation of question: Could you help me, I don't understand how I should do it? You are making a text encryptor. It should take multiple words and produce a combined version, where each word is separated by a dollar sign $. For example, for the words "hello", "how", "are", "you", the output should be "$hello$how$are$you
quot;. The given code declares a class called Add, with a constructor that takes a rest parameter. Complete the code by adding a print() method to the class, which should produce the requested output.
23rd Feb 2022, 11:40 AM
PanicS
PanicS - avatar