replace all in string

    0

    1

    Mansimar Anand

    Replace one string with another

    var str = "Python is a Programming Language, Python is a top programming language and favourite of every developer"
    str = str.replaceAll("Python", "JavaScript")
    console.log(str)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.