In this post, we will learn about jquery remove last comma from string with an example.
, so the some major files and Directory structures for this example is following below.
This is where I will make a simple HTML form and PHP server side source code for our web application. To make the forms simply all souce code copy and write it into your any text editor Like Notepad++, then save file it as index.html.
var users = ["jaydeep","mayur","nilesh","vijat","bhavesh",,,]; var results = new Array(users.join()); console.log(results);
Remove last item from array
let devlopers = ['ankit', 'krunal', 'chirag', 'jaydeep']; let removeddev = devlopers.pop(); console.log(removeddev); // "jaydeep" console.log(devlopers); // ["ankit", "krunal", "chirag"]
var students = ["jaydeep","krunal","Ankit","chirag","dhaval",,,]; var test = new Array(students.join()); console.log(test);
I would like to have feedback on my Pakainfo.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.
Here are some more FAQ related to this Article: