Run
Online Code Editor
Welcome to the javaTpoint.com
It is an example of using the removeData() method
This is a paragraph with id = "p1".
Click the below buttons to see the effect.
Add data
Remove data using the optional parameter
Remove data without using the optional parameter