JavaScript Taskbook Level 7.6
There are two divs on the page using absolute positioning. Click on the button to check whether these divs overlap each other or not.
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.
Write a program that will generate the following array:
[
'x',
'xx',
'xxx',
'xxxx',
'xxxxx',
]
Given such an object:
let 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:
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]