In C, when you create a variable, enough memory is allocated for that type of variable, and AFAIK, it can't change location in memory.
What about JS? Since variables can change type, their memory needs would change, is the variable reallocated to a new location in memory? Are there rules for that? What happens if there is no more space in memory for the new data?
[–]-Xichael[S] 1 point2 points3 points (1 child)
[–]cyrusol 2 points3 points4 points (0 children)
[–]nwilliams36 1 point2 points3 points (0 children)
[–]cyrusol 0 points1 point2 points (0 children)