This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Sammie Cheston
over 9 years

26/28: Oops, try again. It looks like you didn't log your whole name to the console.

I am so stuck….Any suggestions?

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

Answer 53fcf785548c35b5fa00084e

2 votes

Permalink

Firstly, log out then back in again. Then:-

var myName=”hello”; console.log(myName); myName=”he”; console.log(myName);

points
Submitted by elspeth21
over 9 years

Answer 53fa165b80ff33efb50066f4

0 votes

Permalink

var myName = “Jackson” console.log(myName) var myName = “Ja” console.log(myName)

points
Submitted by DarioBiesemans
over 9 years

1 comments

Sammie Cheston over 9 years

Thank you

Answer 53fc9967548c35eae3002f37

0 votes

Permalink

var myName =”emmy”; console.log(myName); console.log(“emmy”.substring(0,2)); console.log(myName);

points
Submitted by 容小任
over 9 years

1 comments

Sammie Cheston over 9 years

Thank you