- 5

JavaScript

You’re to create a text encryptor You are making a text encryptor. It should take multiple words and output 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 named Add, with a constructor that takes one rest parameter. Complete the code by adding a print() method to the class, which should generate the requested output.

14th Aug 2021, 4:07 PM
Asante Patrick Rolemodel
Asante Patrick Rolemodel - avatar
1 Answer
+ 11
Asante Patrick Rolemodel If you need help, please show your code and let us know what part you are stuck on.
14th Aug 2021, 4:20 PM
Hatsy Rei
Hatsy Rei - avatar