Need help with #26


#1

could someone please review this and tell me what I am doing wrong?

Thanks so much

// On line 2, declare a variable myName and give it your name.
var myName = "Ladan";
// 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.
console.log("Ladan").substring(0,2));
// On line 9, use console.log to print out the myName variable.
console.log("myName");


#2

console.log("Ladan").substring(0,2)); is wrong. You need to set the variable myName to myName with a substring.


#3

Do what jaaakee said and also change console.log("ladan").substring(0.2); to myName = myName.substring(0,2); Also since myName is a variable you shouldn't have it inside "".That's a string would make it a string.

here is the what it should all look like
var myName = "Ladan";
console.log(myName);
myName = myName.substring(0,2);
console.log(myName);