Merge pull request #480 from dandgerson/patch-2
fix typos in the task solution
This commit is contained in:
commit
20f7462634
1 changed files with 3 additions and 3 deletions
|
@ -8,12 +8,12 @@ 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");
|
||||
select.append(newOption);
|
||||
let newOption = new Option("Classic", "classic");
|
||||
genres.append(newOption);
|
||||
|
||||
// 3)
|
||||
newOption.selected = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue