JavaScript Taskbook Level 7.6

Задание 1

There are two divs on the page using absolute positioning. Click on the button to check whether these divs overlap each other or not.

Задание 2

Given a button and ul. Clicking on the button displays a list of all possible lucky tickets. A ticket is a string of six digits, possibly with leading zeros. A ticket is considered lucky if the sum of the first three digits is equal to the sum of the second three digits.

Задание 3

Write a program that will generate the following array:

javascript[
  'x',
  'xx',
  'xxx',
  'xxxx',
  'xxxxx',
]
Задание 4

Given such an object:

javascriptlet data = {
  2018: {
    11: {
      29: [1, 2, 3],
      30: [4, 5],
    },
    12: {
      30: [6, 7],
      31: [8, 9],
    },
  },
  2019: {
    12: {
      29: [10, 11],
      30: [12, 13],
      31: [14, 15],
    }
  },
}

Write all the elements of this object into some array, like this:

javascript[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]