Please Explain this:

this.cells.push({x:i,y:0});

and

this.cells[i].x

what is the importance of x and y and how it is implemented actually.

Hey @anitish.225
Welcome to the CB family buddy :slight_smile:
So { x:i, y:0 } is an object where x, y are keys and i, 0 are corresponding values
x, y refer to the co-ordinates on the plane of a particular box
this.cells is the snake array object
this.cells[i] refers to ith box in the snake
this.cells[i].x refers to X co-ordinate of ith box in snake

I hope you enjoy the course and don’t forget to rate it to show your appreciation
Happy Coding !!