for which purposes javascript mainly used in .net

what is the basic use of javascript in .net. please provide the reliable information regarding the question. i will be thankful