I need to write a function that returns a string without the characters 'a' and 's'. For example, the string 'SAverageSsA' will be returned by the function 'verge'. And the string 'AsaAAs' will return an empty string. How can i do this?
let testString = "AsSverage";
function removeAs(string) {}
removeAs(testString);