Justice served: A New Jersey judge last week sentenced Ali Muhammad Brown, the first person convicted under the state’s anti-terror law, to life behind bars with no possibility of parole.

Brown admitted murdering Brendan Tevlin, an innocent 19-year-old kid home from college and minding his own business, as his car sat at a red light in West Orange. Brown’s diaries show he’d pledged allegiance to ISIS.

He has also admitted killing three men in Seattle. His life sentence, to run consecutive to a 36-year term for armed robbery, is clearly the minimum called for.

Brown’s act, after all, didn’t just snuff out a promising young life; it dealt a huge blow to his family and friends and shook the tranquil suburban community. It also sent a sharp reminder that terrorists don’t limit their violence to big cities. Tevlin’s wake brought out 3,500 mourners.

“None of us knows how far Brendan would’ve gone with his life,” said his grandfather, Tom Tevlin Sr., but he’d have been “a big success, helping those less fortunate.”

Losing a child, his mother, Allison Tevlin, sobbed, “is something you never get over.”

In sentencing Brown, Judge Ronald Wig­ler called the murder one of the most “heinous, horrific, brutal crimes” he’d ever seen. “Your callous, ruthless, barbaric behavior is truly more akin to the actions of a monster rather than a human being.”

Compare Wigler’s sentence to the 17-year term (practically a wrist-slap) Brooklyn Judge Margo Brodie gave Fareed Mumuni last month for conspiring to aid ISIS and stabbing an FBI agent. Yes, the agent survived, but Mumuni faced up to 100 years.

Tevlin’s family, friends and community will never get over his loss. But Brown’s life sentence offers a modicum of justice.