Retired

Mystery function #3 (retired)

Description:

This kata was inspired by piranhas's 'Mystery function #1'.

The idea behind it is pretty simple, i cannot guarantee the same about solving it :)

Description:

There's a mysteryfunction which is already available for you to use. It accepts a string as a parameter and outputs a string.

The exercise depends on guessing what this function actually does.

You can call the mystery function like this:

var myOutput = mystery('myInput');

Using your own test cases, try to call the mystery function with different input strings and try to analyze its output in order to guess what is does.

You are free to call the mystery function in your own test cases however you want.

When you think you've understood how the mystery function works, prove it by reimplementing its logic in a function that you should call solved(x).

To validate your code, your function 'solved' should return the same output as the 'mystery' funtion given the same inputs.

Enjoy :)

Puzzles
Games
Functions
Control Flow
Basic Language Features
Fundamentals
Strings
Data Types
Security

More By Author:

Check out these other kata created by MicheleCarbone

Stats:

CreatedMar 31, 2018
Warriors Trained26
Total Skips0
Total Code Submissions76
Total Times Completed6
JavaScript Completions6
Total Stars0
% of votes with a positive feedback rating17% of 3
Total "Very Satisfied" Votes0
Total "Somewhat Satisfied" Votes1
Total "Not Satisfied" Votes2
Total Rank Assessments3
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • MicheleCarbone Avatar
Ad