A 17-year-old boy will face court today accused a killing a boy in a crash in Sydney's west over the weekend.

Police believe the L-plate driver was speeding when he hit a boy who was standing with friends on a footpath at Villawood on Saturday night.

The 14-year-old was thrown into the windscreen of a parked truck.

He was taken to hospital with critical head injuries, but died early on Sunday morning.

Police arrested the driver at a nearby house.

He has been charged with dangerous driving occasioning death, negligent driving occasioning death and being an unaccompanied learner driver.

Police have not ruled out laying further charges.

The boy is due to face Parramatta Children's Court today.