Substring question


Hi, good morning,
I am having trouble with the substring: It gives me this error: " It looks like you didn't log the length of myCountry to the console."
Thank you!

var myCountry="Venezuela";
// Use console.log to print out the length of the variable myCountry.

// Use console.log to print out the first three letters of myCountry.


The instructions are asking not for the actual string, but for the length of that string. We can get the length of a string by using .length.


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