Java Script - unable to Repeat the same instruction on my own

Hi I was following the course material HCL GUVI | Learn to code in your native language

i was trying the same in the mozilla browser but could not do it please can you help. I am no IT professional New to programming .