im trying to do something with functions and came into a problem:
when making a variable i dont know how to set the variable name to a function's variable.
example:
createVariable("hi",200,200);
function createVariable(NAME,x,y) {
var NAME = [x,y];
}
output: hi = [200,200]
is there a way to do this?