Question: what is the difference between infinity and undefined?
Answer: Infinity is a defined thing. I.e a value which can't be written numerically. But it's finite thing. But undefined is that , which can't be defined means we don't have a clue about it.