Print the middle character of a string | Function that prints the middle character of a string ; Finding string length ; Finding middle index of string ; Print the middle character of the string ; Given string str ; Function Call
function printMiddleCharacter ( str ) { let len = str . length ; let middle = parseInt ( len / 2 , 10 ) ; document . write ( str [ middle ] ) ; } let str = " " ; printMiddleCharacter ( str ) ;