I perform a function to return strings.
in example
let tName = adjustNametoArray(1);
console.log (tName); \\ "scoobyDoo"
I also have an array with the same "name";
var scoobyDoo = [];
What I would like to do, take that string "scoobyDoo", then push data into my empty scoobyDoo array.
let tName = adjustNametoArray(1);
console.log (tName); \\ "scoobyDoo"
[tName].push("ruhroh");
console.log(scoobydo[0]); \\ "ruhroh"
This however does not work, with no error.