Can you still?

What happens when we do this?

function bark() {
  console.log('Woof!');
}

bark.animal = 'dog';

You missed this one before

This is possible in JavaScript, because functions are objects! (Everything besides primitive types are objects)

A function is a special type of object. The code you write yourself isn't the actual function. The function is an object with properties. This property is invocable.

Question 10 · see the original (opens in a new tab)