Predestination 2014 - Explained

by Luca De Nardi

HTML

<!-- Predestination -->
<!-- Movie page https://en.wikipedia.org/wiki/Predestination_(film) -->

JavaScript

var jane = {
	id: 1,	//Never changes trough the cycles, so it's always the same object
	name: 'Jane',
	bear: function(who){	//With who?
  	console.log(this);
    console.log("had a child with");
    this.name = "Jane";	//This becomes the newborn itself
    console.log(this);
    
    console.log("The new child is: ", this);
  	return this;	//The Newborn
  },
  grow: function(){
  	console.log(this.name + " is growing...");
  	this.name = "John";	//Jane changes name and becomes John
    console.log(this.name + " has grown...");
    return this;	//The Grown One
  }
}
var john;
for(var i = 0; i < 100; i++){	//Until when..??
  john = jane.grow();	//John is Jane (growth up)
  jane = jane.bear(john);	//Jane has a child with John, the child is Jane herself
}