Skip to content

Commit 2162ca1

Browse files
committed
fix: prevent confusion
1 parent 2e616c3 commit 2162ca1

File tree

1 file changed

+2
-0
lines changed
  • sources/academy/webscraping/web_scraping_for_beginners/data_extraction

1 file changed

+2
-0
lines changed

sources/academy/webscraping/web_scraping_for_beginners/data_extraction/using_devtools.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ It will produce a result like this, but it **won't be** the Sony subwoofer.
5757

5858
![Query a selector with JavaScript](./images/devtools-collection-query.png)
5959

60+
> In the screenshot, there is a missing semicolon `;` at the end of the line. In JavaScript, semicolons are optional, so it makes no difference.
61+
6062
When we look more closely by hovering over the result in the Console, we find that instead of the Sony subwoofer, we found a JBL Flip speaker. Why? Because earlier we explained that `document.querySelector('.product-item')` finds the **first element** with the `product-item` class, and the JBL speaker is the first product in the list.
6163

6264
![Hover over a query result](./images/devtools-collection-query-hover.png)

0 commit comments

Comments
 (0)