var newObject = Object.create(oldObject);//this doesn't work when oldObject conatins non-primitive like arrays and other objects - instead it copies a reference to the object, which is not wanted in most cases.