Problems with #26, I can't see what i'm doing wrong


#1

Hello, i'm working on this course and got to #26 change variable values

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

and I really can't see what's wrong here! please help me out


#2

myName = "Daisy".substring(0,2)

the alternative to this bit is to just do myName = "Da" but I think it's great you're using .substring! as it keeps you used to using js syntax. Changing that should fix it.


#3

This solved the problem, thank you very much!
I think i understand what caused this problem in the first place now