A nuisance biker chased by police officers in Sheffield, narrowly avoided hitting a pedestrian as he fled, a court heard.
The 17-year-old boy, who cannot be named for legal reasons, admitted driving without due care and was disqualified for six months.
Magistrates heard when officers arrested him after he pulled up in his back garden they found he was carrying a knife.
Inspector Jason Booth, of Sheffield South East Safer Neighbourhood Area, said: “We are working hard to tackle the anti-social behaviour caused by off-road bikers around the Westfield and Waterthorpe areas and I hope this court case will send a warning to those causing the problem.
“Officers tackled this incident head on after receiving reports from members of the community.