Skip to content

Instantly share code, notes, and snippets.

@jw-jenrise
Created January 24, 2018 10:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jw-jenrise/6905cc5263b062563814a2e16ad6c2a1 to your computer and use it in GitHub Desktop.
Save jw-jenrise/6905cc5263b062563814a2e16ad6c2a1 to your computer and use it in GitHub Desktop.
// 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