25 variable practice


#1

// Declare a variable on line 3 called
// myCountry and give it a string value.
var myCountry = "Pakistan";

// Use console.log to print out the length of the variable myCountry.
console.log("Pakistani".length );
// Use console.log to print out the first three letters of myCountry.
console.log("Pakistan".substring(0,3));


#2

For this line, you should input the length of your variable myCountry, not the actual text string "Pakistan".

Here, you should input the variable myCountry and not the text string "Pakistan".


#3

hahahha you are SUPERUSER. thanks
but sorry to say you are late i google it..
btw thanx..
grt job bro.
i hope you'll again help me next time...


#4

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