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

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

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
javascript
Domain
content

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.

Description

bug
Описание

Что выведет alert?

let str = "Hello";
str.something = 5;
alert(str.something); // ? в тесте указан правильный ответ что будет ошибка, но будет undefined

Как воспроизвести?

на сайте (Тесты знаний) https://learn.javascript.ru/quiz "Язык JavaScript" здесь будет этот тест

Браузер

я тестировал это в vscode

Dominant language
HTML
Stars
4.1k
Forks
922
PR merge metrics
No merged PRs in 30d

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.

More from javascript-tutorial/ru.javascript.info

All issues in javascript-tutorial/ru.javascript.info

Similar issues

More Content issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.