diff --git a/Prototype/scripts/main.js b/Prototype/scripts/main.js index 5eb6c10..82911b3 100644 --- a/Prototype/scripts/main.js +++ b/Prototype/scripts/main.js @@ -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]}`); -} \ No newline at end of file +}