Converts a number to a hexadecimal string or parses a hexadecimal string to a number.
hex(value)
Convert number to hex
hex(255); // returns "FF"
hex(16); // returns "10"
Convert hex string to number
hex("FF"); // returns 255
hex("0x1A"); // returns 26