Protect and serve Please explain


#1

I’ve solved a level. But there is things that i can’t understand. Can someone please explain it to me.


#2

Are you talking about var defend = [] and var soldiers = [], if so they’re basically empty arrays that you create so you can fill them with stuff like x, y positions or soldiers.