Skip to content

Commit f47d25e

Browse files
authored
fix typos in the task solution
had fix two typos in "1-add-select-option" task solution
1 parent 62226ef commit f47d25e

File tree

1 file changed

+2
-2
lines changed
  • 2-ui/4-forms-controls/1-form-elements/1-add-select-option

1 file changed

+2
-2
lines changed

2-ui/4-forms-controls/1-form-elements/1-add-select-option/solution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ The solution, step by step:
88

99
<script>
1010
// 1)
11-
let selectedOption = genres.options[select.selectedIndex];
11+
let selectedOption = genres.options[genres.selectedIndex];
1212
alert( selectedOption.value );
1313
1414
// 2)
15-
let newOption = new Option("classic", "Classic");
15+
let newOption = new Option("Classic", "classic");
1616
select.append(newOption);
1717
1818
// 3)

0 commit comments

Comments
 (0)