Created
January 24, 2018 10:42
-
-
Save jw-jenrise/6905cc5263b062563814a2e16ad6c2a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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