Find the Mid | Function to find the mid alphabets ; For every character pair ; Get the average of the characters ; Driver code
function findMidAlphabet ( s1 , s2 , n ) { for ( var i = 0 ; i < n ; i ++ ) { var mid = ( s1 [ i ] . charCodeAt ( 0 ) + s2 [ i ] . charCodeAt ( 0 ) ) / 2 ; document . write ( String . fromCharCode ( mid ) ) ; } } var s1 = " " ; var s2 = " " ; var n = s1 . length ; findMidAlphabet ( s1 , s2 , n ) ;