0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<p>The closures really helped us out. The gallery is close to working as intended!</p>
1
<p>The closures really helped us out. The gallery is close to working as intended!</p>
2
<p>Each time we pass various values to addThumbnailClickHandler. Each handler gets its own closure, in which there are some specific parameter values thumbnail and photo. These are the values that each handler uses when an event occurs. And currently the index value in the already run loop has no effect on our program.</p>
2
<p>Each time we pass various values to addThumbnailClickHandler. Each handler gets its own closure, in which there are some specific parameter values thumbnail and photo. These are the values that each handler uses when an event occurs. And currently the index value in the already run loop has no effect on our program.</p>
3
<p>All that we have to do is replace the console output with the src for the large image and make sure that the code works correctly.</p>
3
<p>All that we have to do is replace the console output with the src for the large image and make sure that the code works correctly.</p>