The youngster was taken to hospital after being hit by an electric bike on a footpath