What is your logic? The script doesn't even compile.
Some hints:
- It's warnings, not warning.
- Using strict is a good practice. It means more than just putting use strict at the top of your code. Where do you declare your variables?
- break is used to leave a given block. You need last to leave a for loop.