JavaScript Taskbook Level 10.8

Задание 1

Given an array. Output to the console all possible permutations of the elements of this array.

Задание 2

Write code that will draw a rainbow on the canvas.

Задание 3

Given two inputs and a button. Clicking on the button outputs a list of ul all amicable numbers from the interval specified by the input values.

Задание 4

Given a form with inputs, textareas, checkboxes, radio buttons and selects. The user somehow changes the form elements. Make it so that after the browser window is reloaded, all form elements return to the state in which the user left them.

Задание 5

Given a square HTML table of arbitrary size. By clicking on the button, transpose it, that is, turn it on its side. Let's look at an example. Let's say we have a table like this:

After transposing it should become the following: