I consider myself as a hard-working person and good team worker. My strengths are love for learning, patience and perseverance. My goal is to become a professional in FrontEnd Development area, which gives me pleasure and motivation to self-development.
The “FilterString” function, which takes a string and a character as input, and returns a new string in which the passed character has been removed in all its positions.
const filterString = (text, letter) => {
let i = 0;
let result = '';
while (i < text.length) {
if (text[i] !== letter) {
result = result + text[i];
}
i = i + 1;
}
return result;
}