Javascript Program to find ith character in a binary String .
let s = " " ; function ReverseString ( s ) { let arr = s . split ( " " ) ; for ( let i = 0 ; i < arr . length / 2 ; i ++ ) { let temp = arr [ i ] ; arr [ i ] = arr [ arr . length - i - 1 ] ; arr [ arr . length - i - 1 ] = temp ; } return arr . join ( " " ) ; }