Domanda di colloquio di Tata Consultancy Services

Programming question in JavaScript : consider the word "apple". You have to convert from lowercase to uppercase and vice-versa using JavaScript.