What is variable typing in JavaScript?

Q

What is variable typing in JavaScript?

✍: Guest

A

It is perfectly legal to assign a number to a variable and then assign a string to the same variable as in the following example:

i = 10;
i = "string";

This is called variable typing

2011-01-25, 3207👍, 0💬