toAscii

Convert HEX string to ASCII3 string

Usage

tronWeb.toAscii()

Parameters
hexString-a hexadecimal string.

Returns
String-The ASCII value corresponding to the given hexadecimal string.

Example

var str = tronWeb.toAscii("0x74726f6e")
console.log(str)
>”tron”