fix typos in the task solution

had fix two typos in "1-add-select-option" task solution
This commit is contained in:
Dmitry Anderson 2018-08-21 08:51:02 +03:00 committed by GitHub
parent 62226efedc
commit f47d25e1aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,11 +8,11 @@ The solution, step by step:
<script> <script>
// 1) // 1)
let selectedOption = genres.options[select.selectedIndex]; let selectedOption = genres.options[genres.selectedIndex];
alert( selectedOption.value ); alert( selectedOption.value );
// 2) // 2)
let newOption = new Option("classic", "Classic"); let newOption = new Option("Classic", "classic");
select.append(newOption); select.append(newOption);
// 3) // 3)