Closed theQuery closed 1 year ago
Change generatorRandomNumber() in Confirm.js to be based on the length of the wives array instead of a hardcoded number. That way it won't have to be changed with each image added to the wives array.
function generatorRandomNumber() { - return Math.floor(Math.random() * 40); + return Math.floor(Math.random() * wives.length); }
LGTM, go ahead!
Change generatorRandomNumber() in Confirm.js to be based on the length of the wives array instead of a hardcoded number. That way it won't have to be changed with each image added to the wives array.