I think you completely missed my point. I am simply pointing out prompt()is provided by Apple just like alert() provided by JS itself.
Before coming to a conclusion that you can point to and say someone is wrong, please understand that not everyone here is a master of English.