Britain's Prime Minister Boris Johnson gestures as he leaves Downing Street in London, Britain, September 25, 2019. REUTERS/Henry Nicholls

LONDON (Reuters) - The British government will both respect the law and leave the European Union as scheduled on Oct. 31, Prime Minister Boris Johnson said in a TV interview on Wednesday.

Lawmakers have voted against a no-deal Brexit and Johnson says he will reach an agreement with the European Union but is prepared to take Britain out of the bloc without a deal.

“We will respect the law and we will come out on Oct. 31,” Johnson told ITV.