Javascript

Topic: JS Data Types

JavaScript Has Dynamic Types

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

Browse random answers: