I have create a sentence "my name , is , shahab". I want to remove both comma's. I removed one comma.Can any one help me to remove the other comma and show the sentence "my name is shahab".
<!DOCTYPE html>
<html>
<head>
<title>Helpful functions</title>
</head>
<body>
<div>
<h2>Hello my name is Babloo</h2>
</div>
<script type="text/javascript">
let alpha = "my name , is , shahab";
let al = alpha.split(" ");
let index = al.findIndex((c)=>{
return c == ','
})
al.splice(index,1)
alpha = al.join(" ");
console.log(alpha)
</script>
</body>
</html>