Where did I make the mistake in this javascript program?


Replace this line with your code.


Have you tried removing the first myCountry.substring(0,3);?


In line 6, the code you have written will print the length of the string value "myCountry" to the console. The instructions are to print out the length of the variable myCountry.


in console.log you write only what will be printed.
line 4 is good but not in correct place.


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