Browsed by
Tag: Javascript Questions for Interview

What is variable typing in javascript?

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 followsexample i = 10; i = “string”; This is called variable typing In JavaScript, variable typing refers to the dynamic typing nature of the language. This means that variables in JavaScript can hold values of any data type, and the data type of a variable can change during the execution of a program. For example, you can declare a…

Read More Read More