26. only error


#1

I dont know what I have done wrong?


https://www.codecademy.com/courses/getting-started-v2/4/3?curriculum_id=506324b3a7dffd00020bf661

Oops, try again. There was a problem with your syntax.


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


#2

HI this line

myName = myName.substring(0, 2));

you have more ) than you need.


#3

Thanks, now I just feel stupid :sweat_smile:


#4

A post was split to a new topic: Whats my problem then


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.