Function to generate string from characters at even indices
function makeevenString ( str ) { var even = " " ; for ( var i = 0 ; i < str . length ; i += 2 ) { even += str . charAt ( i ) ; } return even ; }