fix typos in the task solution
had fix two typos in "1-add-select-option" task solution
This commit is contained in:
parent
62226efedc
commit
f47d25e1aa
1 changed files with 2 additions and 2 deletions
|
@ -8,11 +8,11 @@ The solution, step by step:
|
|||
|
||||
<script>
|
||||
// 1)
|
||||
let selectedOption = genres.options[select.selectedIndex];
|
||||
let selectedOption = genres.options[genres.selectedIndex];
|
||||
alert( selectedOption.value );
|
||||
|
||||
// 2)
|
||||
let newOption = new Option("classic", "Classic");
|
||||
let newOption = new Option("Classic", "classic");
|
||||
select.append(newOption);
|
||||
|
||||
// 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue