JSFiddle - React, Tailwind, and code Playground
JavaScript
var names = [
"rocky",
"jhon"
];
names.push('shyam');
names.splice(1,0,"Ajinder");
alert(names);
var names = [
"rocky",
"jhon"
];
names.push('shyam');
names.splice(1,0,"Ajinder");
alert(names);