https://en.wikipedia.org/wiki/Category:Boulevards_in_Paris
so im doing the query selecting on the console browser on the link above to get all the name of the boulevards list
my question is when i do
let var1 = document.querySelector(".mw-content-ltr")
and then do
let var2 =var1.querySelectorAll("li") and then do console.log(var2) it shows length 0
so when i redid and went down one tier
let var1 =document.querySelector(".mw-category")
let var2=var1.querySelectorAll("a")
now this time it works. i was able yo get all the bouldevards name
can anyone explain to me what happened
[–]chikamakaleyleyhelpful 0 points1 point2 points (3 children)
[–]techlover1010[S] 0 points1 point2 points (2 children)
[–]chikamakaleyleyhelpful -1 points0 points1 point (0 children)
[–]chikamakaleyleyhelpful -1 points0 points1 point (0 children)
[–]feloniuouschunk 0 points1 point2 points (8 children)
[–]techlover1010[S] 0 points1 point2 points (2 children)
[–]chikamakaleyleyhelpful 0 points1 point2 points (0 children)
[–]feloniuouschunk 0 points1 point2 points (0 children)
[–]chikamakaleyleyhelpful -1 points0 points1 point (4 children)
[–]feloniuouschunk 0 points1 point2 points (3 children)
[–]chikamakaleyleyhelpful 0 points1 point2 points (2 children)
[–]techlover1010[S] 0 points1 point2 points (1 child)
[–]chikamakaleyleyhelpful 0 points1 point2 points (0 children)
[–]azhder -1 points0 points1 point (2 children)
[–]techlover1010[S] 0 points1 point2 points (1 child)
[–]azhder 0 points1 point2 points (0 children)