P
P
Peter Sergeev2021-07-20 19:59:53
JavaScript
Peter Sergeev, 2021-07-20 19:59:53

Why is this undefined in this code?

Why is this undefined on line 11?
On line 12, as I understand it, the function f is called in the context of this, where this is f1000 and f1500 But when I try to look at this (line 11), I get not f1000 and f1500 , but undefined https://jsfiddle.net /6c4bhrqs/f.apply(this, arguments)


Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2021-07-20
@223606322

In short, because the context of the call f1000is undefined
Read More

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question