I have this code block:
var comma_decoded = window.btoa(',');
var comma_encoded = window.atob(comma_decoded);
var log = eval(comma_encoded);
var x = 1 log y = 2;
console.log(x + ' ' + y);
but, I can't execute ',' character as code.
I need '1 2' output, so log variable must work like comma (,)
Thank you.
In javascript, you cannot use variables as operators or language-specific tokens.