-
-
Save codecademydev/fa51074ab6f05f097951cfe85afe446f to your computer and use it in GitHub Desktop.
Codecademy export
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
// Declare a variable on line 3 called | |
// myCountry and give it a string value. | |
var myCountry = "Greece"; | |
// Use console.log to print out the length of the variable myCountry. | |
console.log("myCountry").length; | |
// Use console.log to print out the first three letters of myCountry. | |
console.log("myCountry".substring(0,3)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment