You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking through the album.js file for Checkpoint 27 to try and help out a student who emailed me, and I noticed that there's a call to findParentByClassName() in line 83 that doesn't seem to be doing anything. Is that intentional or is it a typo (perhaps put into there for testing purposes)?
The text was updated successfully, but these errors were encountered:
@joelip It was for testing purposes. In making the assignment video, I had to call the function with three different sets of arguments to show that the different alerts displayed properly. The last set, which shows on line 83, didn't really need to be called, since it's actually what's in the code, but it was meant to be illustrative.
The other two sets were like (noParent, 'banana') and (child, 'banana') ... something like that.
Hey @clln,
I was looking through the
album.js
file for Checkpoint 27 to try and help out a student who emailed me, and I noticed that there's a call tofindParentByClassName()
in line 83 that doesn't seem to be doing anything. Is that intentional or is it a typo (perhaps put into there for testing purposes)?The text was updated successfully, but these errors were encountered: