Assessment wanted for Strings skill test

Link to the actual task:

Link to the examples I would like to be assessed:
String 1: https://codepen.io/fadildairo/pen/XWzrqKw

String 2: https://codepen.io/fadildairo/pen/abVojzG

String 3: https://codepen.io/fadildairo/pen/BamBOYr

String 4: https://codepen.io/fadildairo/pen/KKyPrYo

Hi @FadilDairo :wave:

Great job on these tasks! Here are my comments:

  • Task 1: Correct :white_check_mark:
  • Task 2: Instead of hardcoding 14 you should use index and the length of substring to cut the whole string to the correct length in one go. Can you find out how the code should look like?
  • Task 3: Correct :white_check_mark: Additional question: If the first would be lowercase how could you improve your code to still produce the correct result?
  • Task 4: Correct :white_check_mark:

I hope that helps!

Happy coding,
Michael

I refactored tasks 3 and 2. Kindly access it again.

1 Like

Great improvements. Perfect! :smiley: