Question:
How do you
remove an item from array? Give an example in code.
Answer
var arr = [1,2,3,4];
arr.splice(index, 1);
arr.splice(index, 1);
Welcome to my JavaScript And Angular learning blog. Here you can learn javascript share javascript code and practice javascript and angularJS. You can find javascript questions and answers including angular and other javascript librairies like; React and Node.js. While using this blog you will find sample of javascript code that I have writen or collected from javascript related posts online.Many javascript programing tips and best parctices. Find code samples showing javascript async functions.
No comments:
Post a Comment