This forum is now read-only. Please use our new forums! Go to forums
Getting started with programming 25/28 Plz HELP!!!!
I am trying to do this puzzle but it is not working.
var myCountry = “Canada” ;
console.log(“myCountry”.length(0,6));
console.log(“myCountry”.substring(0,3));
Answer 53449c077c82cae507000ea0
Below worked for me
// Declare a variable on line 3 called // myCountry and give it a string value. var myCountry=”USA”
// Use console.log to print out the length of the variable myCountry. console.log(myCountry.legnth=3 ); // Use console.log to print out the first three letters of myCountry. console.log( myCountry.substring (0,3) );
Answer 534e0b71548c357df8000650
Answer 5538963086f5522bac0001f5
Answer 5342e49a8c1ccc09620008b3
// Declare a variable on line 3 called // myCountry and give it a string value.
// Use console.log to print out the length of the variable myCountry. console.log( );
// Use console.log to print out the first three letters of myCountry. console.log( ); // Declare a variable on line 3 called // myCountry and give it a string value. var myCountry = “UNITED STATES”; // 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));
**** Answer **** ~ ^.^ ~
4 comments
THX
thanks
yeah. no problem. if you seem to have problems. just refresh your browser. :).
or ask/tell me. or ask some1
Answer 5342e46880ff3385be0008ad
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
Thank you bradly_jay. This really helped!