<prompt> Ngola khoutu bakeng sa ho fapanyetsana likarolo tse peli ka lethathamo le fanoeng.Ha ho tlhahiso  <response>: Instruction in English: Write the code for swapping two elements in a given array. . Response in English: Heres an example code for swapping two elements in an array in JavaScript:javascriptfunction swaparr, firstIndex, secondIndex let temp arrfirstIndex; arrfirstIndex arrsecondIndex; arrsecondIndex temp; Example usage:let array 1, 2, 3, 4;swaparray, 1, 2; after this, array is now 1, 3, 2, 4 . Response in Sesotho: Mona ke mohlala oa khoutu ea ho fapanyetsana likarolo tse peli ho JavaScript: javascript function swaparr, firstIndex, secondIndex let temp arrfirstIndex; arrfirstIndex arrsecondIndex; arrsecondIndex temp; Mohlala oa tšebeliso: letsetsa 1, 2, 3, 4; swapsehlopha, 1, 2; ka mora sena, lenane la hona joale 1, 3, 2, 4 