Skip to content

Commit c17e8d0

Browse files
authored
Create DOM.md
1 parent 677987e commit c17e8d0

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

challenges/DOM.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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)

0 commit comments

Comments
 (0)