That’s a trick question. While many of us have been taught that pedestrians have the right-of-way, that’s not always true. A pedestrian must also exercise reasonable care. Such care includes obeying traffic signals, using crosswalks, and not darting into the street. Also, a pedestrian may waive her right -of-way. For example, if she motions to a driver to proceed, then the driver may rely upon such "waiver" (pun intended) and proceed.
When a pedestrian is struck by a driver and suffers personal injury, if necessary, a jury will decide whether the pedestrian had the right-of-way and acted reasonably.