<prompt> function greetUsername alertHello, name there!;Tambua kusudi la kazi iliyotolewa na kuandika upya katika fomu rahisi.  <response>: The purpose of the function is to greet the user by displaying a message, either using the users name or with the word there as a default, in case no name is provided. Here is the function rewritten in a simpler form:javascriptfunction greetUsername if !name name there; alertHello, name!; 