In vs hasOwnProperty in JavaScript

In vs hasOwnProperty in JavaScript