Javascript Program to find the sum of two integers of different bases .
function val ( c ) { if ( c >= ' ' && c <= ' ' ) return c . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ; else return c . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) + 10 ; } function convert ( num , bases ) { let len = ( num . length ) ;