Help 26


#1

I've tried everything, please help!

// On line 2, declare a variable myName and give it your name.
var myName="Clinton";
// On line 4, use console.log to print out the myName variable.
console.log(myName);
// On line 7, change the value of myName to be just the first 2 
// letters of your name.
var myName = "Clinton".substring(0,3);
// On line 9, use console.log to print out the myName variable.
console.log(myName);

#2

In your parentheses, it should be 0 , 2 not 0 , 3.


#3

It says to print the first two letters of your name. Alternatively, on line seven, change it to "Cl";
You don't need the substring.


#4

You are correct. Sorry, I said the wrong thing.


#5

HI you were also right he could do it like that

var myName = "Clinton".substring(0,2);

#6

Cool so it works 2 ways?


#7

Thanks everyone, figured it out