JavaScript how can I add all the file sizes together?

When I select the files I want, I want to alert all the sizes together. So if I upload 3 files and on is 100bytes and one is 200 bytes and one is 500 bytes. I want it to alert 800 bytes. At the moment its alerting each one at a time.