Resolved (Chapter.26)


#1

I've been trying more than 30 minutes!
but I still can't figure it out...

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


#2

Just refresh browser


#4

on line 7 you must assign myName, again.


#5

This is marked as solved, but I got this and it was marked as correct. Am I even right here?


#6

It is right, but on line 7 you should have practiced using substring instead of just hardcoding the first two letters of your name.