let zero = 0;
let counter = 3;
let my = [“Ahmed”, “Mazero”, “Elham”, “Osama”, “Gamal”, “Ameer”];
console.log(); // [“Osama”, “Elham”, “Mazero”, “Ahmed”];
without using number only variable
i try to reverse this array and add one element to this array then splice using this variable as this
splice(zero , counter , zero ) but this didnot work i need he give me the part the splice by this method only so when splice store value and how i can do this correcty
Omar 3llm is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.