Почему переменная затенка не работает в консоли инструмента Chrome Dev? Но это происходит в node.js: < /p>
const a = 1
{
const a = 2
}
< /code>
Это бросает a: < /p>
VM1195:1 Uncaught SyntaxError: Identifier 'a' has already been declared
Подробнее здесь: https://stackoverflow.com/questions/795 ... ol-console
Мобильная версия