Hi Guys,
I’m having problem with this code…
TypeError: “Cannot read property ‘push’ of undefined…”
Link below
Thanks a lot
Hi Guys,
I’m having problem with this code…
TypeError: “Cannot read property ‘push’ of undefined…”
Link below
Thanks a lot
Check what value push
returns. It does not return the array itself, so once you’ve done it oncs, your value is now a number, then you’re then trying to push
to a number, which doesn’t work.