function trickyScope() {
var x = 10;
if (true) {
let x = 5;
console.log(x);
}
console.log(x);
}
trickyScope();Ответ: 5 10
JavaScript test | #JavaScript
JA JavaScript test @js_test · 9.68K subscribers function trickyScope() {
var x = 10;
if (true) {
let x = 5;
console.log(x);
}
console.log(x);
}
trickyScope();