Add JavaScript questions (#4505)

* Add Javascript questions

* wip: add more questions

* wip: add ternary operator

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* fix: set example

* wip: add more questions

* wip: add more question

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add another question

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions

* wip: add more questions
This commit is contained in:
Arik Chakma authored and GitHub committed 2023-10-12 15:03:19 +01:00
1 parent 485ca9dd8f
commit abbeb717d1
52 files changed
+1475

No files matched your search

@@ -0,0 +1,9 @@
To remove a DOM element, you can use the `remove` or `removeChild` method of the `Node` interface.
```js
const roadmapWrapper = document.querySelector('.roadmap-wrapper');
const roadmapTitle = document.querySelector('#roadmap-title');
roadmapWrapper.removeChild(roadmapTitle);
roadmapWrapper.remove();
```