Im doing more variable practice but i cant find what is wrond here help plz


#1

// 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(var myCountry.length === 9);

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


#2

Declare the variable, blubkingllo, declare it... like this:

var myCountry = "String value"


#3

yes thats where im stuck i am little confused about that


#4

i dont know where to put that


#5

and what value do i need to do


#6

All you have to do is declare myCountry and define it by saying that it's a variable and it is a string.

Also, you do not put the way you put it on your first console.log.

You're supposed to do it like this:

console.log(myCountry.length);

Because you already defined it, you do not have to write all the other stuff.


#7

@ragezapper
i have now this:
// 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( myCountry.length);
// Use console.log to print out the first three letters of myCountry.
console.log(myCountry.substring(0,3));

and it still do not work


#8

Remember my first post? You have to put something like:

var myCountry = "some string you want to put it doesn't matter..."


#9

thanks i made it ragerapper


#10

ragerapper! :open_mouth: Haha no problem