0

I am trying to assign a variable name using a variable but it is not working:

name_of_variable = abc;

eval(name_of_variable) = 'simpleword'; 

console.log(abc);

How can I get this to work?

c0deNinja
  • 3,956
  • 1
  • 29
  • 45

0 Answers0