Hello, what would a tutorial for this be called?
Aim: To call a function with two param-indexes and retrieves key:value from a second array. The first targets an array, which tells the second index which part of the targeted array the object to be retrieved is from.
For example,
const callArray=[location, misc];
const location=[{name: ,effect:},{name: ,effect:}];
const misc=[{name: ,effect:},{name: ,effect:}];
function goSomewhere(){(update([0],[1]));}
function update(param){
nameText.innerText= first index goes through callArray to determine which array the second index is for.
}