I was wondering if there was a function to create a variable, like new Object()
, new Array()
, etc. So, does something like new Variable("variable name", "value")
exists? Thanks
EDIT: I know the var
keyword... My goal was a function to create a variable which we could set the name with another variable... I saw the comment which was to make something like eval(
var ${name};)
, that's what I would need, but how can I verify if it doesn't exist yet?