JavaScript Object.getPrototypeOf and example.isPrototypeOf(obj) gave confusing results

As per MDN, syntax of isPrototype is

prototypeObj.isPrototypeOf(obj)

Also refer isPrototypeOf vs instanceof

function person(fname, lname)
{
  this.fname = fname;
  this.lname = lname;   
}

var arun = new person('Arun', 'Jaiswal');

console.log(Object.getPrototypeOf(arun));  //person
console.log(person.prototype.isPrototypeOf(arun));
Answer:1

Prototype of arun is not person but person.prototype:

Object.getPrototypeOf(arun) === person.prototype; // true
person.prototype.isPrototypeOf(arun); // true
Answer:2

I'm currently working on my website footer and would like it if the user clicks Contact Us that a yellow div appears from behind the footer. Here is what I'm working on so far right now, but I can't ...

I'm currently working on my website footer and would like it if the user clicks Contact Us that a yellow div appears from behind the footer. Here is what I'm working on so far right now, but I can't ...

  1. slideup effects in jquery
  2. slideup in jquery
  3. slideup() in jquery
  4. slideup function in jquery

AngularJS $scope.model is undefined when I initialize it via Javascript <button ngf-select="upload($file)">Выбрать</button> <span id="photoSpan"></span> ...

AngularJS $scope.model is undefined when I initialize it via Javascript <button ngf-select="upload($file)">Выбрать</button> <span id="photoSpan"></span> ...

  1. angularjs scope model
  2. angularjs scope ng-model
  3. angularjs scope contains the model data

It seems it's fairly common practice to grab the contents of a Google-calendar embed code, and add a stylesheet into it (either manually or through something like a PHP script) and display a custom-...

It seems it's fairly common practice to grab the contents of a Google-calendar embed code, and add a stylesheet into it (either manually or through something like a PHP script) and display a custom-...

  1. what are these google pop ups
  2. what are these google charges

I have a date_select in my html form. I know that it separates the day month and year. I am trying to work out how to construct a date in the form YYYY-MM-DD within my Javascript, in order to send ...

I have a date_select in my html form. I know that it separates the day month and year. I am trying to work out how to construct a date in the form YYYY-MM-DD within my Javascript, in order to send ...