Best way to replace variables in string | JS
For example I have string coming from JSON:
"VALUE is more than VALUE_LIMIT"
.
I want to replace VALUE
and VALUE_LIMIT
with actual data from array, for example:
const answer = {"VALUE": 15, "VALUE_LIMIT": 5}
.