How can I find the index of any value in array and then remove it? [duplicate]

In an array I want to find the index of a value and then remove that value. The constraint is that I have to use core JavaScript without any frameworks.

let array = [9,8,7,6,5,4,3,2,1];

How can I find the index of ‘4’ and remove it from the array using core JavaScript?