Around here, although not advisable, it is legal to take the sidewalk. But, you are required to ride at 8mph or less.
I see so many bikes barreling down the sidewalk and looks to me like they are cruising for a bruising.
How often do bikes ride at 8mph? Answer = not many.
Which is why we suggest taking the lane. Legal and do-able in most circumstances.