arr = [1,2,3,4,5,6,7]
val = ? (3 different values from arr)
result = "${val} and ${val} and ${val}"
I want to replace ${val} with arr elements such that ${val} will not be same in result.
I seriously don't have idea how to replace different values in place of ${val}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/iRDZqtF
Comments
Post a Comment