• New Array Methods, Alternative Static Typing and JQuery Release.

Hello CheckiO users! ๐Ÿ™‚

As was promiced in the previous news, all missions, that were at Polygon station, were placed in different stations! You are welcome to find and solve them to increase succed persentage of stations. Here are a few of them:


Move Zeros by freeman_lex - You are given an Array of numbers. Move all zeros in the Array to the end of it. The order of non-zero elements should not change.

assert.deepStrictEqual(moveZeros([0, 1, 0, 3, 12]), [1, 3, 12, 0, 0]);
assert.deepStrictEqual(moveZeros([0]), [0]);

Replace with Biggest by freeman_lex - You are given an Array of numbers data. Replace every element in it with the biggest element among the elements to its strict right (not including current element). The last element should be replaced with -1. Return modified sequence as Array of numbers.

assert.deepStrictEqual(replaceBiggest([17, 18, 5, 4, 6, 1]), [18, 6, 6, 6, 1, -1]);
assert.deepStrictEqual(replaceBiggest([1, 2, 3, 4, 5, 6]), [6, 6, 6, 6, 6, -1]);
assert.deepStrictEqual(replaceBiggest([1, 1, 1]), [1, 1, -1]);

Not in Order by freeman_lex - You are given an Array of numbers. Your function should return the number of elements, which are not at their places as if the Array would be sorted ascending.

assert.strictEqual(notOrder([1, 1, 4, 2, 1, 3]), 3);
assert.strictEqual(notOrder([1, 1, 1, 1, 1]), 0);
assert.strictEqual(notOrder([1, 2, 3, 4, 5]), 0);

๐Ÿ’ก But it is always something interesting to read! So, there are 3 articles from the JavaScript world about new array methods, jquery release and static typing without typescript:


jQuery 3.7.0 Released: Staying in Order - The most widely used JS library ( is used by 77% of the 10 million most popular websites) has its update. Look inside what's new!

Get full type support with plain JavaScript - What TypeScript offers is a static type system. That means that the type information has no effect in running code. All the type information is completely lost when your TypeScript is executed. You can get all the benefits of TypeScript in JavaScript by using JSDoc - It is a formalized markup language that allows IDEs to provide additional context to developers when they see a function.

ES2023 introduces new array copying methods to JavaScript - The ECMAScript 2023 specification has been recently finalised. It includes some new methods on the Array object that will help make our JavaScript programs more predictable and maintainable. The methods toSorted, toReversed, toSpliced, and with allow you to perform operations on arrays by without changing the data in place, but by making a copy and changing that copy. Read on to learn the difference and how to start using them in your projects.

๐Ÿ™Œ Thanks for your attention! Hope to meet you at CheckiO. We are really interested in your thoughts! Please, leave a comment below! โคต

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