innerHTML problem

i have written proper JS code attached with the HTML but my chrome brower cant read the innerHTML and telling like innerHTML is null.why!!!

Hello Sateesh,
Can you share the complete code of the program on codepen:-

It would be easier for me to debug the issue and provide the solution via codepen.