• This week's series of missions with light bulbs

checkio
 

Hello CheckiO users! 🙂

💪 Challenge yourself with our latest series of missions with light bulbs, which will be highly useful in understanding the concept of processes and evaluation of the processes’ performance:

The first one is called Lightbulb Intro where you have to determine how long the light bulb has been turned on depending on the the time during which a switch on/off button has been pressed.

sumLight([
    new Date(2015, 1, 12, 10, 0 , 0),
    new Date(2015, 1, 12, 10, 10 , 10),
]) == 610

sumLight([
    new Date(2015, 1, 12, 10, 0 , 0),
    new Date(2015, 1, 12, 10, 10 , 10),
    new Date(2015, 1, 12, 11, 0 , 0),
    new Date(2015, 1, 12, 11, 10 , 10),
]) == 1220

sumLight([
    new Date(2015, 1, 12, 10, 0 , 0),
    new Date(2015, 1, 12, 10, 0 , 1),
]) == 1

The second mission is Lightbulb Start Watching and here you have to find how long the room was lit, starting from a certain moment.

The third is the Lightbulb End Watching mission and here you also have to figure out how long the room was lit, but consider the time when it’s necessary to end the observation.

The fourth mission is called Multiple Lightbulbs where you still need to determine how long the room will be lit between start_watching and end_watching period, but now you have to consider more than one light bulb.

    💡 Highlights from the JS world:
  • Teaching is hard! There are so many things that teachers must balance and consider in their work. And with this work comes a responsibility of keeping yourself accountable for your student’s education. Some teachers forget about that and stay oblivious to the mistakes they are making. We’ve compiled a list of 9 Reasons Why Students Don’t Want You as a Teacher. We sincerely hope that it will help you to self-reflect, better connect with your students and achieve better results during your lessons.
  • Check out the Promise Memoization pattern, which builds on the Singleton Promise pattern! You’ll find out how a common caching implementation exposes a race condition, how to fix it, and a way to simplify your code in the process.
  • Get a clear understanding of the final feature set of ECMAScript 2020. You'll see what features have reached stage 4 and what it actually means, among other things.
  • You have questions or you what to check your JS knowledge? We know just the repo for you! Go over the JavaScript Questions, which contains an amazingly interesting list along with answers. And what's even better, it's constantly being updated with new examples!
  • Fixing memory leaks is a difficult and time-consuming process. Check out some of the techniques of finding and fixing memory leaks in web apps that can work for you. You'll also see some elaborate and easily applied examples.

Our congratulations to the winner of December 2020 - alexeylozenko - you are totally Awesome and we are very glad to have you here with us! 👏🏼

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