What is the error, pls?


#1


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

Oops, try again. It looks like you didn't log the first 2 letters of your name to the console!

console.log(myName); var myName = "Jelena";
console.log(myName.substring(0,6))
myName = "Je";
console.log(myName.substring(0,2))


#2
  1. Declare and define the variable... var myName = "Jelena";
  2. Log out the variable..................... console.log(myName);
  3. Redefine the variable................... myName = myName.substring(0,2);
  4. Log out the modified variable....... console.log(myName);

#3

Thank you! I've got it all sooo wrong!


#4

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