Tree menu in VanillaJS.
JS skills test problem.
The goal is to make tree structure like this:
The number of subfolders is unlimited in general. Also, it has to work right after inserting the script (should work everywhere). I assume, that there is a container div. Example JSON data format is provided.