This week's missions: Fizz Buzz, Cut Sentence and Find Enemy
Hello CheckiO users! 🙂
💪 Challenge yourself with our latest missions:
The first one is called Fizz Buzz where you have to write a function which returns a particular answer when fulfilling specified conditions.
fizzBuzz(15) == "Fizz Buzz" fizzBuzz(6) == "Fizz" fizzBuzz(5) == "Buzz" fizzBuzz(7) == "7"
The second mission is Cut Sentence and here you need to truncate a sentence to a length corresponding to the given number of characters.
cutSentence("Hi my name is Alex", 4) == "Hi..." cutSentence("Hi my name is Alex", 8) == "Hi my..." cutSentence("Hi my name is Alex", 18) == "Hi my name is Alex" cutSentence("Hi my name is Alex", 20) == "Hi my name is Alex"
The third is the Find Enemy mission where your task is to find the distance and directions to an enemy in a HEX-grid.
findEnemy('B2', 'S', 'B4') == ['F', 2]
💡 Highlights from the JS world:
- The next iteration version of the TypeScript Website has launched! See what changed, how the site navigation issues have been addressed, accessibility, the improvement of documentation for the collection of over 100 compiler flags, and other things. The site is amazing!
Welcome to CheckiO - games for coders where you can improve your codings skills.
The main idea behind these games is to give you the opportunity to learn by exchanging experience with the rest of the community. Every day we are trying to find interesting solutions for you to help you become a better coder.Join the Game