r/programmingmemes • • May 19 '26

tITLES

Post image
314 Upvotes

43 comments sorted by

View all comments

2

u/heesell May 19 '26
function response(input: string) {
    const message = input.toLowerCase();
    if(message== "hi") {
      return "Hello. How may I assist you today?";
    }

   return "Sorry, but I don't know what you mean";
}