DEVFYI - Developer Resource - FYI

What is variable typing in javascript?

JavaScript Interview Questions and Answers


(Continued from previous question...)

69. What is variable typing in javascript?

It is perfectly legal to assign a number to a variable and then assign a string to the same variable as follows
example
i = 10;
i = "string";
This is called variable typing

(Continued on next question...)

Other Interview Questions