This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Animate Your Name Forum

View Course

385 points
16bdcc9d5e72edbada5812a8dda8db04?s=140&d=retro
Submitted by
Neema A.
about 2 years ago

4/15 Did you write 'yourName'.length correctly?

what is the problem here?

document.write( "James".length )


4 votes

permalink

"yourName".length;

this works. in example it has a period after length but ignore that. lines need to end in semicolon.

76 points
55f5bed4d3292fcd3700006f_744279654
Submitted by
Carolyn Evans
about 2 years ago

1 Comment

55f5bed4d3292fcd3700006f_744279654 Carolyn Evans about 2 years ago

sorry, totally missed parentheses in instructions. this works too: document.write( "Carolyn".length ); looks like you were super close, just missing the semicolon to end the line.


0 votes

permalink

Carolyn is correct. I am just starting the course and got hung up here. The newly introduced length needs to go into the parentheses.

33 points
Picture
Submitted by
Matthew Tomkins
almost 2 years ago