Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q382 What is the best way to clear the contents of an array prior to repopulating it?

You are here: irt.org | FAQ | JavaScript | Object | Q382 [ previous next ]

You could try setting the array to null:

<script language="JavaScript"><!--
var xyz = new Array('x','y','z');
alert(xyz);
xyz = null;
alert(xyz);
//--></script>

Feedback on 'Q382 What is the best way to clear the contents of an array prior to repopulating it?'

©2018 Martin Webb