Como escapar da barra invertida em JavaScript?

Eu quero substituir backslash => '\' com seguro\ substituição.

Mas meu código substituindo todo o '#' falha quando aplicado para substituir '\':

el = el.replace(/\#/g, '#'); // replaces all '#' //that's cool
el = el.replace(/\\/g, '\'); // replaces all '\' //that's failing

Por quê?

questionAnswers(2)

yourAnswerToTheQuestion