Hello everyone,I’m having trouble with the Document Object Model (DOM) in JavaScript.If anyone has any tips or suggestions for how to learn the DOM in JavaScript or if anyone could offer guidance on adding functionality to an HTML page, I would really appreciate it.
I am just learning DOM and was trying to apply basic functionality like when we click on restart button everything should get erase, and I was trying text highlighter / text finder when I will enter that particular word it will highlight.
This is the question. I have just created the HTML but don’t know how to proceed for DOM.
Take input numbers in form of string by separating numbers with ,. If there is an invalid number throw and error in id #error. Display the input in #display after clicking the button #add
Implement js filter by writing code for even numbers and odd numbers separately and display them in #display after clicking buttons #even #odd respectively
Implement Join method without any space between elements and display in #display after clicking #join button
Note: Use JSON.stringify for displaying arrays and display strings normally