26 cant figure it out


#1



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


#2

@dammann28gmail.com

Remove the = between substring and (


#3

// On line 4, use console.log to print out the myName variable.

console.log(myName .length);

thats the answer, you need to add .length

// On line 7, change the value of myName to be just the first 2
// letters of your name.

console.log(myName .substring(0,2));

you don't need ="noah" because you already defined it in line 3


#4

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

Please help me!! whats wrong with my code???


#5

Hi this part

var myName = console.log(myName)

You shoukd remove The var myName And Just keep console.log(myName)