Where did I make the mistake in this javascript program?


#1


Replace this line with your code.


#2

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


#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.


#4

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


#5

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