At the short hearing at Westminster Magistrates’ Court, the 17-year-old, who was flanked by two security officers in the dock, spoke only to confirm his personal details and to plead guilty to the charge.

Two family members, including his mother, sat in seats in front of the dock.

District Judge Nina Tempia freed the teenager on bail with conditions including to live and sleep at his home address and to not enter any synagogue.

She told the defendant: “I’m going to grant you bail so that you can be released today. If you breach these bail conditions you will be arrested by the police.”

The teenager was scheduled to appear at Willesden Youth Court on 4 June.