Understanding: Javascript The Weird Part Parts

Furthermore, var is , not block-scoped. This leads to the famous "loop problem":

function Dog(name) Animal.call(this, name); understanding javascript the weird part parts

This example demonstrates how to create a `Dog` constructor that inherits from the `Animal` constructor using prototypes. Furthermore, var is , not block-scoped

const parent = greet: () => 'hello' ; const child = Object.create(parent); child.greet(); // 'hello' (delegates to parent) const child = Object.create(parent)

(declared with var ) are placed in memory with a placeholder value of undefined .