Solid Exercises from the Ladders translated to JS