JavaScript Taskbook Level 3.1

Задание 1

You are given a number. Check that the digits of this number are arranged in ascending order.

Задание 2

Given an array:

javascript[1, '', 2, 3, '', 5]

Remove all empty strings from the array.

Задание 3

Given an array:

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

Sort the elements in each subarray.

Задание 4

Two arrays are given:

javascriptlet arr1 = [1, 2, 3];
let arr2 = [1, 2, 3, 4, 5];

Remove extra elements from the end of the larger array so that the lengths of the arrays become the same.