xxxxxxxxxx
text = input("your text>>")
print(text.replace(text[0],"$"))
xxxxxxxxxx
// Function to remove text
function removeText() {
// Input string
let originalText = 'GeeksForGeeks';
// Implementing replaceAll with text to be removed
let newText = originalText.replaceAll('Geeks', '');
// Display output
console.log(newText);
}
// Function call
removeText();