Function stuck to a value (it returns but the value does not update) JS
I have a JS function that executes the following: when typing a text in the input, and pressing a button, the function analyzes the string to see if it has any of following letters: if it contains the …