Mention what is the disadvantage of using innerhtml in javascript?
Answer / Avneesh Kumar
The main disadvantage of using innerHTML in JavaScript is that it may create security vulnerabilities, like cross-site scripting (XSS) attacks. Additionally, it can affect performance when dealing with large amounts of data because the entire HTML structure needs to be reconstructed.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is string in javascript?
How do you check if an object is an array or not?
What is the difference between innerHTML and innerText?
What does triple dot mean?
Can you assign an anonymous function to a variable?
Define a named function in javascript.
What is node ecosystem?
Explain javascript closures by example.
Why is var better than let?
What output will this program produce System.out.println(x+"+"+y+"="+(x+));
What is Number object in JavaScript?
What are javascript closures?when would you use them?