<prompt> Theha tšebetso ho JavaScript ho bona hore na nomoro e fanoeng ke ea mantlhanan  <response>: Instruction in English: Create a function in JavaScript to check if a given number is prime . Response in English: Here is a function in JavaScript to check if a given number is prime:javascriptfunction isPrimen First, handle corner cases: check if n is less than 2 if n 2 return false; Check if n is divisible by any number from 2 to n2 for let i 2; i n 2; i if n i 0 return false; If none of the conditions above are met, n is prime return true; Testing the function:console.logisPrime2; trueconsole.logisPrime5; trueconsole.logisPrime8; falseconsole.logisPrime11; trueconsole.logisPrime15; false . Response in Sesotho: Mona ke tsebetso ho JavaScript ho hlahloba hore na nomoro e fanoeng ke ea bohlokoa: mosebetsi oa javascript isPrimen Ntlha ea pele, sebetsana le linyeoe tsa sekhutlo: hlahloba hore na n e ka tlaase ho 2 haeba n 2 khutlela e fosahetseng; Hlahloba hore na n e aroloa ka nomoro leha e le efe ho tloha 2 ho ea ho n2 bakeng sa tlohela 2; i n 2; i haeba n i 0 khutlela leshano; Haeba ho se le e ngoe ea maemo a ka holimo e fihletsoeng, n ke nete ea ho khutlisa; Ho leka mosebetsi: console.logisPrime2; nete console.logisPrime5; nete console.logisPrime8; kholiso ea bohata.logisPrime11; nete console.logisPrime15; bohata 