<!DOCTYPE html> <html> <body> <h1>JavaScript Strings</h1> <h2>The replaceAll() Method</h2> <p id="demo"></p> <script> let text = "WorkingCode contains hundreds of quality scripts and solutions that address REAL WORLD challenges.Everything here comes from developers and consultants like you!" text = text.replaceAll("hundreds","thousand"); document.getElementById("demo").innerHTML = text; </script> </body> </html>
Output:
JavaScript Strings
The replaceAll() Method
WorkingCode contains thousand of quality scripts and solutions that address REAL WORLD challenges.Everything here comes from developers and consultants like you!
The replaceAll() Method JavaScript
admin Changed status to publish December 19, 2023