• This week's missions: Domino Chain and Currency Style

checkio coding js

Hello CheckiO users! 🙂

💪 Challenge yourself with our latest missions on the Mine station:

The first mission is called Domino Chain and here you'll have to count how many complete chains you can make using all of the given dominoes and following the conditions.

dominoChain('0-2, 0-5, 1-5, 1-3, 5-5') == 1
dominoChain('1-5, 2-5, 3-5, 4-5, 3-4') == 2
dominoChain('0-5, 1-5, 2-5, 3-5, 4-5, 3-4') == 0
dominoChain('0-1, 0-2, 1-3, 1-2, 3-4, 2-4') == 6
dominoChain('0-1, 0-2, 1-3, 1-2, 3-4, 2-4, 3-0, 0-4') == 0

The second is the Currency Style mission where you need to convert dollars from the one style of using the thousands separator and decimal mark to the different style.

currencyStyle('$5.34') == '$5.34'
currencyStyle('$5,34') == '$5.34'
currencyStyle('$222,100,455.34') == '$222,100,455.34'
currencyStyle('$222.100.455,34') == '$222,100,455.34'
currencyStyle('$222,100,455') == '$222,100,455'
    💡 Highlights from the JS world:
  • Go through an incredible list of JavaScript tips and tricks! It will show you the more efficient ways of doing things in JS with clear examples, which will make everything far less confusing. It’s very useful!
  • Being a JavaScript developer means knowing how to handle the result of asynchronous actions. Bring your understanding of the event loop, callbacks, promises, and async/await in JS to a new level! You can learn how the host environment uses the event loop to handle the order of execution of code with the stack and queue, try out the examples of three ways to handle the success or failure of an asynchronous event, and use the Fetch Web API to handle asynchronous actions.
  • Learn JavaScript fundamentals through fun and challenging quizzes! It’s very effective!

The users who’ve made the TOP 3 this month are lolucky, suic, and mortonfox.  You are doing great, guys! Keep on coding! 👏🏼

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