Can Anyone Solve This? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can Anyone Solve This?

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

21st Aug 2022, 9:01 AM
Abolfazl Abbaspour
Abolfazl Abbaspour - avatar
2 Answers
+ 4
Yes, anyone can solve this... Can you solve this? If you need help with the code, please read the lesson again, then try to write the code and present us your code attempt so we can help you to solve it yourself. You won't benefit from getting ready-made code when you are a beginner and haven't tried it yourself. Please mention the task number, so people who want to help can look up the task description and the given code.
21st Aug 2022, 9:16 AM
Lisa
Lisa - avatar
+ 2
Yes, I got it.
21st Aug 2022, 9:17 AM
JaScript
JaScript - avatar