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

Неверный ответ в тесте javascript

Open Beginner friendly
#2,163 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.