The strike() method displays a string that is struck out.
The strike() method displays a string that is struck out.
This method returns the string embedded in the <strike> tag, like this:
<strike>string</strike>
string.strike()
None
A string embedded in the <strike> tag
Display a struck-out string:
//display a string that is struck out. var str = "Hello World!"; var result = str.strike(); console.log(result);/* www.j a va 2s. co m*/