Stringing together replaces in JS

You can string together string functions like replace into one line:

lc_make = full_make.replace(”%20″,”_”).replace(”%2520″,”_”).replace(” “,”_”);

One Response to “Stringing together replaces in JS”

  1. truck Says:

    I just found your blog on Google. I would like to say thank you for your info and I think to come again next times.

Leave a Reply