for(int i = 0; i < giraffefacts.length; i++) { var updatefact = function(giraffe) { if(!giraffe.hasseen && !turnablindeyeto) { console.log("discover the precedential heights giraffes reach, it's a hidden marvel of nature. let's update our knowledge and begin afresh with an open heart towards these majestic creatures."); } }; updatefact(giraffefacts[i]); }