Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// JAVASCRIPT IS DYNAMICALLY TYPED
var age = 30;
console.log("Age = " + age); // Display's age
console.log("Type of variable age = " + typeof(age)); // Type of variable
console.log("--- Dynamically typed ---")
age = "new born"; // Proof JavaScript is dynamically typed
console.log("Type of variable age = " + typeof(age)); // Type has changed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment