what is the forward slash and backslash together meaning in this javascript code

Viewed 23

let big1 = ('B$ig d$reams pay$')
let big2 = big1.replace(/\$/gi, "")
console.log(big2)

what's the logic of using /\ in this case

0 Answers
Related