This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by harringtonq6037
almost 10 years

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

0 votes

Permalink

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) );

points
Submitted by bradly_jay
almost 10 years

1 comments

Natalie almost 10 years

Thank you bradly_jay. This really helped!

Answer 534e0b71548c357df8000650

0 votes

Permalink

myCountry= “DRC”;

// Use console.log to print out the length of the variable myCountry. console.log(“DRC”.length);

// Use console.log to print out the first three letters of myCountry. console.log(“DRC”.substring(0,3) );

points
Submitted by adrienjr
almost 10 years

Answer 5538963086f5522bac0001f5

0 votes

Permalink

var myCountry = “Indonesia”

console.log( “myCountry”.length )

console.log( “Indonesia”.substring (0,3) )

this is my answer, try it 100% succes

points
Submitted by rachmat
almost 9 years

Answer 5342e49a8c1ccc09620008b3

-1 votes

Permalink

// 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 **** ~ ^.^ ~

points
Submitted by Jordan Davis
almost 10 years

4 comments

Arav Suthar almost 10 years

THX

Francisco Mata almost 10 years

thanks

Jordan Davis almost 10 years

yeah. no problem. if you seem to have problems. just refresh your browser. :).

Jordan Davis almost 10 years

or ask/tell me. or ask some1

Answer 5342e46880ff3385be0008ad

-4 votes

Permalink

delete ur stuff and copy this:

points
Submitted by Jordan Davis
almost 10 years