Add Method to Built-in Javascript Object

You can use prototype property to add method to built-in Javascript objects

I am going to add inArray() to Array object in Javascript

So number 9 is not array and you will get the output false

Leave a Reply

Your email address will not be published. Required fields are marked *