convert a number into a hexadecimal string

Inputs

  • number

Outputs

  • hexadecimal string

Algorithm

/**
 * convert a number into a hexadecimal string: 
 *
 * @param x1 number
 * @return {Array}
 */
function neuron729(x1)
{
return[(Number(x1).toString(16))];
}

console.log(neuron729(981));

Create your family tree for free