["Green", "Red", 100, 20, "100"]
In the above example, the value “Green” was defined twice in the array. As a result, you see only one instance of Green.
You may be thinking about element 100. Here the first occurrence of the element 100 is an integer value and the second one is defined as a string. In short, both elements are treated as unique.