Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


<meta charset="utf8" />
<title>JavaScript Array object - constructor property example</title>
<style type="text/css">
h1 {color:red}
<h1>JavaScript Array Object : prototype Property</h1>
<script src="array-prototype-example1.js"></script>




                function array_min_value()
 var ctr, min_value = this[0];

   for (ctr = 1; ctr < this.length; ctr++)
   if (min_value > this[ctr])
   min_value = this[ctr];
   return min_value;
Array.prototype.min = array_min_value;
var a = new Array(111, 123, 126.99, 100, 500);
var b = a.min();
var newParagraph = document.createElement("p");
var newText = document.createTextNode("The lowest element in the array is : "+b);