JSFiddle - React, Tailwind, and code Playground

by Alagar Kamuthurai

JavaScript

function removeExclamation(inputString) {
    return inputString.replace(/!/g, '');
}

// Example usage:
var inputStr = "Hello! How are you doing!?";
var outputStr = removeExclamation(inputStr);
console.log(outputStr); // Output will be: "Hello How are you doing?"