JavaScript has dynamic types. This means that the same variable can be used as different types: Examplevar x // Now x is undefinedvar x = 5; // Now x is a Numbervar x = "John"; // Now x is a String
Javascript
Topic: JS Data Types
JavaScript Has Dynamic Types
Browse random answers:
What is the JavaScript Data Types?
What are JavaScript types?
JavaScript Has Dynamic Types
what is a JavaScript Strings?
What is a JavaScript Numbers?
What is undefined value means in JavaScript?
What is the data type of variables in JavaScript?
Difference between undefined and undeclared variables.
What data type javascript supports?
What is the difference between undefined value and null value ?