Example of a factory pattern

<!DOCTYPE html> <html> <head></head> <body> <sc...

Example of a basic protoypes

<!DOCTYPE html> <html> <head> <script> //Parent prototyp...

Example of prototypes

<!DOCTYPE html> <html> <head> <script> function Library(...

The in property in prototypes

<!DOCTYPE html> <html> <body> <script> var country = ne...

The for-in loop and prototypes

<!DOCTYPE html> <html> <body> <script> var obj = {};...

Combination of constructors and prototypes

<!DOCTYPE html> <html> <head> <script> function Library(...

Dynamic prototype pattern

<!DOCTYPE html> <html> <head> <script> function Library(...

Parasitic constructor pattern

<!DOCTYPE html> <html> <head> <script> function bookRack...

Example of prototype chaining

<!DOCTYPE html> <html> <head> <script> //Parent class...

Prototypal inheritance

<!DOCTYPE html> <html> <head> <script> function objec...