They are both. Mile for mile, NJ probably has more continuous shore towns along its coast than probably any other state, most of them along the 'barrier islands' that border all along its coastline.
I live in NJ, and Sunday helped my in-laws move up furniture from 1st to 2nd flr from their shore house on a lagoon in Beach Haven West, before Sandy struck later the next day. Good thing we did, the entire area ultimately went under water when Sandy struck.
Glad y’all got everything of value upstairs. I pray for all the people who have lost so much in this storm. I am reminded of the folks in another of our home towns and how they reacted after the tornado that destroyed so much of Tuscaloosa last year. The people who lost houses or stuff were just so happy to be alive. It is very humbling when you see destruction of such magnitude.