File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
2-ui/1-document/07-modifying-document/7-create-object-tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ importance: 5
44
55# Create a tree from the object
66
7- Write a function ` createTree ` that creates a nested ` ul/li ` list from the nested object .
7+ İçiçe geçmiş nesneden, içiçe geçmiş bir ` ul/li ` listesi oluşturan bir "createTree" fonksiyonu yazın .
88
9- For instance :
9+ Örneğin :
1010
1111``` js
1212let data = {
@@ -28,7 +28,7 @@ let data = {
2828};
2929```
3030
31- The syntax:
31+ Sözdizimi ( syntax) :
3232
3333``` js
3434let container = document .getElementById (' container' );
@@ -37,15 +37,15 @@ createTree(container, data); // creates the tree in the container
3737*/ ! *
3838```
3939
40- The result (tree) should look like this :
40+ Sonuç (ağaç) şöyle görünmeli :
4141
4242[ iframe border=1 src="build-tree-dom"]
4343
44- Choose one of two ways of solving this task :
44+ Bu görevi çözmenin iki yolundan birini seçin :
4545
46- 1 . Create the HTML for the tree and then assign to ` container.innerHTML ` .
47- 2 . Create tree nodes and append with DOM methods.
46+ 1 . Ağaç için HTML oluşturun ve ardından ` container.innerHTML ` ye atayın .
47+ 2 . Ağaç düğümleri ( tree nodes) oluşturun ve DOM yöntemleriyle sonuna ekleyin.
4848
49- Would be great if you could do both .
49+ Eğer her ikisini de yapabilirseniz harika olur .
5050
51- P.S. The tree should not have "extra" elements like empty ` <ul></ul> ` for the leaves .
51+ Not: Ağacın yapraklar için boş ` <ul></ul> ` gibi "fazladan" öğeleri olmamalıdır .
You can’t perform that action at this time.
0 commit comments