80 of 100 menu

JavaScript Taskbook Level 8.10

There are two inputs and a button. Numbers are entered into the inputs. By clicking on the button, check whether these numbers are friendly or not.

Given some array:

[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]

Given a variable:

let n = 3;

Turn this array into a two-dimensional array, with n elements per subarray.

Given an array:

[ [1, 2, 3, 4, 5], [1, 2, 3], [1, 2], ]

Add enough empty strings to each subarray so that the number of elements in each subarray is equal to the number of elements in the longest subarray.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline