javascript-tutorial / javascript-tutorial/ru.javascript.info
Неверный ответ в тесте javascript
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 4.1k
- Forks
- 922
- PR merge metrics
- No merged PRs in 30d
Description
Описание
Что выведет alert?
let str = "Hello";
str.something = 5;
alert(str.something); // ? в тесте указан правильный ответ что будет ошибка, но будет undefined
Как воспроизвести?
на сайте (Тесты знаний) https://learn.javascript.ru/quiz "Язык JavaScript" здесь будет этот тест
Браузер
я тестировал это в vscode
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
Open the JavaScript language quiz at https://learn.javascript.ru/quiz and locate the question about assigning a property to the string variable str. Reproduce the expression in a browser, then update the quiz's answer or explanation so it matches the observed result and verify the question again.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- content
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100