JavaScript Taskbook Level 8.9
Given a menu with links. Make it so that when you click on a menu link, a submenu appears underneath it.
Given a paragraph with words and a button. By clicking on the button, paint each word a random color so that adjacent paragraphs have different colors.
This div has a closing cross. Make it so that by clicking on the cross, or on any place on the page outside the div, this div hides.
Given textarea and ul. Text is entered into textarea. Make it so that when you press Shift + Enter, each line of text is added to the list as a separate tag li.
The following list of things to do for a specific date is given:
let affairs = {
'2019-12-31': ['array of cases'],
'2018-11-29': ['array of cases'],
'2018-11-30': ['array of cases'],
'2018-12-27': ['array of cases'],
'2019-12-29': ['array of cases'],
'2019-12-30': ['array of cases'],
'2018-12-30': ['array of cases'],
'2018-12-31': ['array of cases'],
}
Display all cases for 2018 year.