Skip to content

PODDN/js_tree-from-object-DOM

 
 

Repository files navigation

Tree from object

Write a function createTree(element, data) that creates a nested list of ul/li from an object. Use keys as list items.

element - is a DOM element

data - is a nested object

Hint: use Recursion

screenshot of the tree

  1. Replace <your_account> with your GitHub username in the link
  2. Follow this instructions
    • Run npm run test command to test your code;
    • Run npm run test:only -- -n to run fast test ignoring linter;
    • Run npm run test:only -- -l to run fast test with additional info in console, ignoring linter.

Styling with SCSS 🎨

This project uses Parcel, which automatically handles the compilation of SCSS to CSS out of the box.

You do not need to manually compile your .scss files. Simply link your main SCSS file directly in your HTML, and Parcel will take care of the rest.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.8%
  • SCSS 19.5%
  • HTML 8.7%