Disclaimer: part of a homework for a course I am doing on javascript:
I am learning javascript regex and I don't know how to go about the following. Basically I have the following string:
const a = 1;
const e = 2;
const b = '$a$/abc/$e$/'
Now I want to replace the $a$ and $e$ with a and e values so at least I have:
const output = '1/abc/2'