I have been working on this code for hours and can't find my problem. Basically, i have a table that is randomly loaded with images and they need organized. Then i have a button that you click to change the first image until the correct image is in place. They are loaded from an array that is already organized to avoid confusion. For example, cell0 = img0.jpg and so on.
Here was my code for finding the correct image for cell0.
organizedImages = "img0.jpg";
if(document.getElementById("cell0").src !== organizedImages)
document.getElementById("cell0").src = pick();
The issue I am having is that it isn't recognizing that it is equal even when the correct image is there. What am i missing?