Help


#1


// 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???


Replace this line with your code.


#2

this line of code:

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

your substring is now stored in your myName variable, so all you need to on line 9 is call console.log on it:

console.log(myName);

don't forget the semi-colon


#3

So I am on level 8 and I did every thing it told me to and its still not working!!! HELP PLEASE!!!!


#4

well, the only way we can help you, is if you create a new topic, with your code + error message + question.


#5

On your last line of code, delete "var myName" and just use console.log(myName). The code is basically telling you to print out the new variable given the substrings.


#6

I hope this debugging helps, if so, tell me is it does


#7

thank you for the help!!


#8

Glad to help. Keep coding!