# How to create a strikethrough text using JavaScript?

To create a strikethrough text with JavaScript, use the strike() method. This method causes a string to be displayed as struck-out text as if it were in a <strike> tag.

## Example

You can try to run the following code to create a strikethrough text −

Live Demo

<html>
</html>