NEWARK, N.J. — Jack Hughes scored the go-ahead goal and added two assists and the New Jersey Devils ended the Kings’ six-game winning streak with a 3-1 victory on Thursday.

Hughes snapped his 12th goal of the season past Kings goaltender David Rittich with 7:02 left in the third period to give the Devils their first lead. Ondrej Palat and Brett Pesce also scored for New Jersey, which won for the first time in three games.

Kings defenseman Jordan Spence opened the scoring when he fired a one-timer past Markstrom with 3:19 left in the second. The goal was assisted by New Jersey native Alex Laferriere and Phillip Danault.

Palat answered — assisted by Hughes and Jesper Bratt — with 1:04 left in the second.

Pesce’s goal was his first as a Devil and came with 2:43 left to cement the win.

Markstrom stopped 12 shots for New Jersey, and Rittich made 23 saves for the Kings.

The Kings hadn’t allowed more than two goals during its winning streak.

Kings forward Alex Turcotte failed to convert on a penalty shot at 11:01 of the second period, shooting high and wide.