Diagrams to understand JavaScript interpretation method

Diagrams to understand JavaScript interpretation method
0

#1

Hi,

I am not sure if this is the right place to post a suggestion…but according to what I see, I think it is.

In one of the FreeCodeCamp Javascript challanges I saw this:

  1. duck => Is eat() defined here? No.

  2. Bird => Is eat() defined here? => Yes. Execute it and stop searching.

  3. Animal => eat() is also defined, but JavaScript stopped searching before reaching this level.

  4. Object => JavaScript stopped searching before reaching this level.

I think it would be great if there were more explanations like this. I think that this kind of explanation helps A LOT to understand how JavaScript is interpreting our code. Also diagrams help a lot, for example, how JavaScript creates an object, etc.