-
-
Save codecademydev/62356f49b7edb5cc67bcc5abca39759d 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