Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

javascript

What is Array prototype?

Sarvech Qadir

New properties and methods can be added to an Array() object using the property constructor. Whenever a property is constructed, arrays are given the property and its value as default. When a method is constructed, all arrays will have access to this method.

Syntax

Array.prototype.name = value

Code

Take a look at the code below:

RELATED TAGS

javascript

CONTRIBUTOR

Sarvech Qadir
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring