let cararr = ['bmw','suzuki','volvo','mazda']
let arrvalue=cararr.push("tesla");
console.log(arrvalue);
The output is 5 why ??
total length of cararr is 3 if push one more value it should be 4 !
I tried solve this but did’nt get correct answer can anybody have right anser for this
New contributor
Mohibullah is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.