You pretty use the arrow keys and jump over the blocks without landing on the spikes. If you by any chance land on the spikes you will be starting from the beginning, of course, you were playing.
thanks to 12376831 Hey buddy this is Neeraj Penumaka who is following you. I changed the platformer a little bit like somethings in the stage.