convert a hexadecimal string into a number

Inputs

  • hexadecimal string

Outputs

  • number

Algorithm

/**
 * convert a hexadecimal string into a number: 
 *
 * @param x1 hexadecimal string
 * @return {Array}
 */
function neuron731(x1)
{
return[parseInt(x1, 16)];
}

console.log(neuron731(985));

Create your family tree for free