Pages
HOME
HTML5
CSS3
JAVASCRIPT
PHP
C
SEO/SMM
SOFTWARE
TIPS & TRICKS
PRIVACY POLICY
CONTACTS
Thursday, August 1, 2013
JavaScript arraysplice
<html>
<body>
<script type="text/javascript">
var fruits = ["Banana", "Orange", "Apple", "Mango"];
document.write("Removed: " + fruits.splice(2,0,"Lemon") + "<br />");
document.write(fruits);
</script>
</body>
</html>
Result
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment