I am receiving a list of over 1000 numbers from an API and storing it in a variable called "number". My goal is to find the highest number from this list. However, I encountered an error while attempting to do so: TypeError: CreateListFromArrayLike called on non-object. I am unsure of what I am doing wrong. Can someone please offer some assistance?
Below is my code:
function CryptoTopGain ({number}){
let highPercent = Math.max.apply(null, percent);
console.log(highPercent )
}