Lab 38 Reflection Journal
For this lab we needed to select multiple divs which were located inside each other and when the divs were clicked a message would display on the JavaScript console which would say "three" for the outer div "two" for the middle div and "one" for the inner div as well as trigger an event when the button below is clicked which writes the text "Click" onto the console. We completed this lab by using the querySelectorAll code which selected all the divs and with it I created a function so that when the divs were clicked then within the console log there id would be displayed. For the button a simple event function was created which when clicked would displayed the desired message.
The skills gained from the lab are useful as we start implementing more pieces of information such as divs and other elements this gives us a way to identify ids or even classes within the console. Creating an event with the button is also really useful as we can know add more interactive features using buttons which will make are websites stand out even more.
The skills gained from the lab are useful as we start implementing more pieces of information such as divs and other elements this gives us a way to identify ids or even classes within the console. Creating an event with the button is also really useful as we can know add more interactive features using buttons which will make are websites stand out even more.

Comments
Post a Comment