The JavaScript client-side technology provides many advantages over traditional CGI server-side scripts. It provides a common scripting language for webpage developers to design, test and deploy Internet applications. It is practical program that is based on JavaScript. By using JavaScript create a webpage to display weekend in words by getting input as a number using switch.