Skip to content

Commit 539e8a1

Browse files
committed
2-ui/1-document/03-dom-navigation: 4-task translation
1 parent 6ed9194 commit 539e8a1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
We'll be using `rows` and `cells` properties to access diagonal table cells.
1+
Ми будемо використовувати властивості `rows` та `cells` для доступу до діагональних клітинок таблиці.

2-ui/1-document/03-dom-navigation/4-select-diagonal-cells/task.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ importance: 5
22

33
---
44

5-
# Select all diagonal cells
5+
# Виділіть усі діагональні клітинки
66

7-
Write the code to paint all diagonal table cells in red.
7+
Напишіть код, щоб зафарбувати всі діагональні клітинки таблиці червоним кольором.
88

9-
You'll need to get all diagonal `<td>` from the `<table>` and paint them using the code:
9+
Вам потрібно буде отримати всі діагоналі `<td>` з `<table>` і розфарбувати їх за допомогою коду:
1010

1111
```js
12-
// td should be the reference to the table cell
12+
// у td має бути посилання на клітинку таблиці
1313
td.style.backgroundColor = 'red';
1414
```
1515

16-
The result should be:
16+
Результат повинен бути таким:
1717

1818
[iframe src="solution" height=180]

0 commit comments

Comments
 (0)