I’m trying to get random nba teams to pop up when the random but is clicked but an error pops up saying that it is not a ustring to get to the random button you have to click the secret button in the bottom left.
It’s happening for two reasons:
First of all, when you’re filtering the teams, on line 204, that if statement should not be there, as it stops the program from pushing any data to the variables.
Also, when the random button is clicked, your update screen function is called before the filter function. Think about how Javascript works - should you call the update screen function before the data is defined? Of course not! You may want to switch those two functions around.