Javascript

Capitalize the First Letter of Each Word in a String
AskAI

This function takes in a string as input and returns the same string with the first letter of each word capitalized.

Sum of even numbers in array
AskAI

This problem asks the programmer to write a function that takes an array of integers as input and returns the sum of the even numbers in the array. As an example, if the input array is [1, 2, 3, 4, 5], the function should return 6 (2 + 4).

Summing Even Numbers in an Array
AskAI

This technical problem involves writing a function that takes an array of integers as input and returns the sum of the even numbers in the array.

Find the Largest Integer in an Array
AskAI

This technical problem deals with finding the largest integer in an array. An example input is given as [1, 2, 3, 4, 5], and the expected output is 5.

Sum of array elements
AskAI

This problem asks the user to write a function that returns the sum of all integers in an array. An example input and output is provided.

Sum of odd numbers in array
AskAI

The function should take an array of integers as input and return the sum of the odd numbers in the array.

Smallest Window Containing All Letters in a String
AskAI

Given a string containing only lowercase letters, this function finds the smallest window that contains all the letters in the string.

Sum of odd integers in an array
AskAI

The function should take in an array of integers and return the sum of the odd integers in the array.