1. Home
  2. Computing & Technology
  3. JavaScript

Maths Array Class

2. Obtain the Script

clr gif
Join the Discussion

Questions? Comments?

More of this Feature

Introduction

To be able to define mathArray objects to use in your Javascript calculations you need to copy the following script and attach it to the head section of your page.

Once you have created your code you just save it to an external javascript file. I called mine matha.js. You then link it into the head of your page using the following code:

<script type="text/javascript" src="matha.js">
</script>

Once you have the script attached to your page you can then use it from your other Javascripts to create and manipulate numerical arrays as I described in the introduction.

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.