As I am delving into the world of JavaScript, I find myself struggling with manipulating multidimensional arrays.
var myarr = [
[ 7, 9, 10 ],
[ 6, 9 ],
[ 5, 9 ]
]
I am looking to insert a zero as shown below. Can anyone guide me on the most efficient way to accomplish this in JavaScript?
[
[ 7, 9, 10 ],
[ 6, 9, 0 ],
[ 5, 9, 0 ]
]