Why i’m not able to give my function name “write” in javascript

Whenever i’m giving function name write its not working.
Actually i’m making simple quiz webpage to understang js basics.
I’m making an function that whenever users select correct option, there will be alert on screen saying your answer is correct.
When Code not Working

Here when my code is eorking
When my Code start working