Gabriele Ferro Home

Dev Advent Calendar – Day #09

Yesterday we helped the elves organise the Secret Santa, but today Santa Claus received a strange looking file in his mailbox. It looks like it could be a hidden message.

In this Dev Advent Calendar Challenge, Santa Claus needs our help to decypher the message in the file.

I had some problems with this JavaScript challenge.

At begin I forgot to use parseInt.

Finally, all tests passed on my computer but when I pushed on GitHub the tests failed because... I don't know for sure but I think forEach method is the root of all evils.

Below you will find my code and the secret message.

ATTENTION! My code seems to work, but it's NOT valid for the challenge!

EDIT:

Carlos @CuzoXYZ gave me his solution. It works.

Lucy Mac @codingwithlucy gave me her solution.

It's very elegant and I really think this is the best solution.

HOW TO PARTICIPATE

  1. Click the participation link
  2. Clone your repository
  3. Solve the puzzle
  4. Test your solution
  5. Add your Twitter handle
  6. Git push your changes

February 2024
MTWTFSS
 1234
567891011
12131415161718
19202122232425
26272829 

Archives

Gabriele Ferro Home
Copyright © Ferro Gabriele. All rights reserved.