13. This is correct but I want to know if


#1

this is my task and this is correct but i want to know if i write myName in console.log ("myname") in line 4 then it have to call the value of variable myName in line 2 but it wouldn't . (as per i think )
// On line 2, declare a variable myName and give it your name.
2: var myName="Saqib";
// On line 4, use console.log to print out the myName variable.
4: console.log("Saqib");
// On line 7, change the value of myName to be just the first 2
// letters of your name.
7:myName="Sa";
// On line 9, use console.log to print out the myName variable.
9: console.log("Sa");


Absolutely no idea on how to work out lesson 13
#2

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

So your console.log should be like that

console.log(myName)
#output Saqib

On line 7, change the value of myName to be just the first 2
You should use substring() to do it like that

var myName = myName.substring(0,2)

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

console.log(myName)
#output Sa