Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Prototype/scripts/main.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import HumanBeing from './HumanBeing';

var me = new HumanBeing({ skinColor: 'pale', hairColor: 'brown', height:'173cm', weight: '100kg', gender: 'male'});
let me = new HumanBeing({ skinColor: 'pale', hairColor: 'brown', height:'173cm', weight: '100kg', gender: 'male'});

var clone = me.clone();
let clone = me.clone();

console.log(`Are original and clone the same instance? ${me === clone}`);

for(let key in me) {
console.log(`Are both ${key} property values in original and clone the same value? ${me[key] === clone[key]}`);
}
}