Implement the RLE (run-length encoding) function for compressing a string with repeating characters: replace sequences of identical characters with the character and the number of repetitions; if a character appears only once, do not output the count.
Frontend
Implement the RLD (run-length decoding) function, which is the reverse of RLE: expand the compressed string by repeating each character the specified number of times; leave single characters unchanged.
What will be output as a result of executing the given code with the user object, fetchUrl method, and debounce function?
Will there be an error in the console when executing a fetch request if the server returns HTTP 404 and response.ok === false, but the response is not explicitly handled? Explain why.
Determine the order of outputting numbers to the console for the given code with Event Loop, Promise, and setTimeout.
Fix the code so that when the debounced function is called, the console logs the user's first name using this.firstName. Do not change the debounce function entirely or line № 6.