TIL all functions create a empty prototype object
POSTED ON:
TAGS: javascript classes advanced
When you create a function in JavaScript, it automatically creates an empty container called prototype for you to stick your methods into.
REF:
Understanding Prototypes in JavaScript
Related TILs
Tagged: javascript