to give you a very simple answer is because you are mixing string variables with number variables, in my case i have a loop using for (in) loop and when i do the loop, the property i was using is automatically a string because i was getting it from an object from my API. Solved questions live forever in our knowledge base where they go on to help others facing the same issues for years to come. their features are too small to be able to distinguish one kind from another. This question has already been solved The person who asked this question has marked it as solved.
Operator '!=' cannot be applied to types 'string' and 'number'. The biological species concept cannot be applied to bacteria because: they never exchange genes that would allow for speciation.