I have a problem in regard to setInterval that I can\'t figure out.
setInterval
There is the problem with the scope when calling setInterval or timeout fro
You put ships[i].bing in setTimeout turns out that the caller of bing is not ships[i] but global, so _this is pointing to global actually.
ships[i].bing
_this