I would like to replace the occurences of "?" with the values in an array
Example :
var s = "hello ? , my name is ?";
I would like to use something like that
var result= s.replace('?',['john','david']); /** does not work **/
console.log(result) /** "hello john, my name is david" **/