<prompt> Soma n integer na kuchapisha mraba wa jumla ya integer zote odd.Kutatua tatizo zifuatazo na JavaScript funciton.  <response>: Here is an example solution to the problem in JavaScript:function squareSumOfOddIntegersn, arr let sum 0; for let i 0; i n; i if arri 2 ! 0 sum arri; return sum sum; Example usage:const arr 1, 2, 3, 4, 5;console.logsquareSumOfOddIntegersarr.length, arr; Output: 81This function takes in two parameters: n is the number of integers in the array and arr is the array of integers. It then loops through the array checking if each number is odd, and adds it to a sum variable if it is. Finally, it returns the square of the sum of all odd integers. 