Thursday, March 20, 2014
How to empty an array in JavaScript?
Is there a way to empty an array and if so possibly with .remove()?
For instance,
A = [1,2,3,4];
How can I empty that?
1 comment:
Unknown
March 20, 2014 at 12:16 AM
Very simple:
A = [];
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Very simple:
ReplyDeleteA = [];