File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ <div align =" right " >
2+ <a href =" /README.md#collection-of-modern-interview-code-challenges-on-javascript-suitable-for " id =" home " >Home</a >
3+ </div >
4+
5+ ## JavaScript interview code challenges on Document Object Model
6+
7+ 1 . [ Show the different ways of selecting an element from DOM] ( #Q1 )
8+ 1 . [ Show the ways to loop over the Nodelist obtained after querying for the elements] ( #Q2 )
9+
10+ ---
11+
12+ #### Q1
13+ ### Show the different ways of selecting an element from DOM
14+
15+ - The ` typeof ` operator returns a string indicating the type of the operand
16+
17+ ``` js
18+ // querySelector, getElementById etc
19+ ```
20+
21+ ###### Notes
22+ Note goes here
23+
24+ ###### References
25+ -
26+
27+ <br />
28+
29+ #### Q2
30+ ### Show the ways to loop over the Nodelist obtained after querying for the elements
31+
32+ - The ` typeof ` operator returns a string indicating the type of the operand
33+
34+ ``` js
35+ // for..in
36+ ```
37+
38+ ###### Notes
39+ Note goes here
40+
41+ ###### References
42+ -
43+
44+ <br />
45+
46+ [[ ↑] Back to top] ( #home )
You can’t perform that action at this time.
0 commit comments