javascript-tutorial / javascript-tutorial/ru.javascript.info
Предложение по вопросу из теста по JS
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 4.1k
- Forks
- 922
- PR merge metrics
- No merged PRs in 30d
Description
Возможно, стоит перефразировать или изменить type вопроса. Вариант "Выдает ошибку" тоже будет верный, т.к. явно не указано исполняется ли строка кода отдельно или в контексте цикла/switch.
content: |
Что делает код:
```js
break me;
```
type: single
answers:
- Ломает интерпретатор JavaScript
- Выходит из текущего блока цикла или switch на метку "me"
- Выдает ошибку
correctAnswer: 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at quiz/quiz-js.yml around line 190 and review the question about break me; in the JavaScript tutorial. Check how labeled break behaves as a standalone statement versus inside a loop or switch, then revise the wording or question type so only an unambiguous answer is correct. Done when the quiz no longer permits the reported alternative interpretation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100