Function createTextNode

Creates a text string from the specified value.

String that specifies the nodeValue property of the text node.

  • Creates a text string from the specified value.

    Parameters

    • data: string

      String that specifies the nodeValue property of the text node.

      MDN Reference

    Returns Text