Javascript stack oriented elegant solution
\tconst stack = [];\n\tfor(let letter of s) {\n        let stackLastEl = stack[stack.length - 1]; //b\n        if (letter === stackLastEl) {\n            stack.
\tconst stack = [];\n\tfor(let letter of s) {\n        let stackLastEl = stack[stack.length - 1]; //b\n        if (letter === stackLastEl) {\n            stack.pop();\n            continue;\n        }\n\n        stack.push(letter);\n    }\n\n    return stack.join(\'\');
['Stack', 'JavaScript']