Pergunta de entrevista da empresa Tata Consultancy Services

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