Why does this code display 31 instead of 4 in the console?
31
4
"3"
"1"
It displays 31 because "3" and "1" are string values, not numbers.