Easy JS Solution
\nvar backspaceCompare = function(S, T) {\n    return backspaceHelper(S) === backspaceHelper(T);\n};\n\nvar backspaceHelper = function(str) {\n    let arr = [];
```\nvar backspaceCompare = function(S, T) {\n    return backspaceHelper(S) === backspaceHelper(T);\n};\n\nvar backspaceHelper = function(str) {\n    let arr = [];\n    for (let char of str) {\n        (char === \'#\') ? arr.pop() : arr.push(char);\n    }\n    return arr.join("");\n}\n```\n\n```\nvar backspaceCompare = function(S, T) {\n    let stack1 = [], stack2 = [];\n    for (let s of S) {\n        (s === \'#\') ? stack1.pop() : stack1.push(s);\n    }\n    for (let t of T) {\n        (t === \'#\') ? stack2.pop() : stack2.push(t);\n    }\n    return stack1.join(\'\') === stack2.join(\'\');\n};\n```
['JavaScript']