<html>
<head>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
var y = ['Red', 'Green',
'White', 'black', 'Yellow'];
var remove_Item =
'White';
document.write("Before:-");
document.write(y);
document.write("<br>");
$('#parray').text(y);
y = $.grep(y,
function(value) {
return value !=
remove_Item;
});
document.write("After:-");
document.write(y);
$('#iarray').text(y);
});
</script>
</head>
<body>
<p
id="parray"></p>
<p
id="iarray"></p>
</body>
</html>