Question 26!


#1

I cant figure out what i'm doing wrong on this part of the tutorial! heres my code:

// On line 2, declare a variable myName and give it your name.
var myName = "Natasha";

// 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 your last console.log should be like that console.log(myName)


#3

To print to console, use console.log(parameter);
For example, in your case you would use "console.log(myName);" for all of your console.log parts.