javascript-tutorial / javascript-tutorial/ru.javascript.info

Предложение по вопросу из теста по JS

Open
#2,062 0 comments 0 reactions 0 assignees View on GitHub

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

https://github.com/javascript-tutorial/ru.javascript.info/blob/79ec1418605513a4b69217cac783a59f0d9937ef/quiz/quiz-js.yml#L190

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.