I want to put data in javascript array like below.
"Carl", 56
"Mark", 7
"Bob", 45
How can I add item and removed from it when I pass any id to that array it should remove that item from array. and gives comma separated names and ids.
I am bit confused about it.