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

Animate Your Name Forum

View Course » View Exercise

673 points
569181c40955cdd5590001dc_75578468
Submitted by
edwardkemp
over 3 years ago

4/15 [resolved] Can't get the name length answer to work, annoying me.

Here is my code that I am using

document.write(  "Edward Kemp"  ); 
"Edward Kemp".length.

It keeps giving me a syntax error. :/


0 votes

permalink

Hi Edward,

The syntax error is for the . after length
Instead of creating a whole new line as you have there, just add the .length to your name in the first line.

3692 points
55df2afa95e3787b9200005e_359368177
Submitted by
Judy
over 3 years ago

4 Comments

569181c40955cdd5590001dc_75578468 edwardkemp over 3 years ago

Thank you! Was so obvious.

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

You're welcome. I think a lot of things one learns become obvious once you get the hang of it.

Picture Jhon Jairo Rodriguez Hernandez over 3 years ago

a mio no me sale por fa me colaboran

Picture Jhon Jairo Rodriguez Hernandez over 3 years ago

("jhonjairo" ) ";".longitud


0 votes

permalink

Delete the dot after the length

572 points
54bbc4a99113cb9116003ab6_938228051
Submitted by
Kewlgirl88
over 2 years ago