Back to Tutorial Paste Your Code here! <!DOCTYPE html> <html> <head> <title>How to Remove all Question Mark From String Using JavaScript?</title> </head> <body> <h1>How to Remove all Question Mark From String Using JavaScript?</h1> <p>New String Value is: <span class="output"></span> </p> <button onclick="removeQuestionmark()"> Remove Question Mark </button> <script type="text/javascript"> function removeQuestionmark() { originalString = 'Experts PHP ? is a Tutorial Website ?'; newString = originalString.replace(/\?/g, ''); document.querySelector('.output').textContent = newString; } </script> </body> </html> Output