Showing error


"What is your name?".length;

The code is not executing.The question is:

Write a string with at least 3 words. Check out the examples of strings above.
Find the length of the string by writing a period (full stop) and the word length, like this:

Length counts every character in the string - including spaces!


That's valid javascript, it'll execute if you run it. It won't do a whole lot though, because it doesn't say to do a whole lot.
What did you expect it to do differently?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.