TGViewer
JavaScript test JavaScript test @js_test · 9.69K subscribers
Post #5141 713
❗️Что будет на выходе:
const person = {};
person.name.toUpperCase();
console.log(person.name);


Ответ: TypeError: Cannot read property 'toUpperCase' of undefined

JavaScript test | #JavaScript
More from @js_test
  1. Oct 13, 2026❓Что будет на выходе? const sym1 = Symbol('description'); const sym2 = Symbol('description…
  2. Oct 13, 2026❗️Что будет на выходе: function Animal(name) { this.name = name; } Animal.prototype.speak…
  3. Oct 12, 2026❓Что будет на выходе? const p1 = new Promise((resolve) => { console.log("A"); resolve("B")…
  4. Oct 11, 2026❗️Что будет на выходе: const obj = {}; Object.defineProperty(obj, 'name', { value: 'Alice'…
  5. Oct 10, 2026❗️Что будет на выходе: async function fetchData() { return 'Data loaded'; } async function…
  6. Oct 10, 2026❗️Что будет на выходе: function highlight(strings, ...values) { return strings.reduce((res…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →