What is the purpose of the following methods:
- hasOwnProperty ();
- getPrototypeOf ();
And what its function in the code below:
var carro = {};
carro.modelo = 'Celta';
carro.marca = 'Chevrolet';
carro.hasOwnProperty('modelo');
Object.getPrototypeOf(carro);