Create GSwP- 27 of 28

var myColor = "Orange";
console.log(myColor.length);



/*

Declare a variable called myColor that is a text string - "Orange"
The next line Outputs using the console.log function the length of the myColor text string - 6


From codcademy.com


Conclusion: Part 1

Let's do a quick review!

Data types

strings (e.g. "dogs go woof!")
numbers (e.g. 4, 10)
booleans (e.g. false, 5 > 4)
Variables
We store data values in variables. We can bring back the values of these variables by typing the variable name.

Manipulating numbers & strings

comparisons (e.g. >, <=)
modulo (e.g. %)
string length (e.g. "Emily".length;)
substrings (e.g. "hi".substring(0, 1);)
console.log( ) 
Prints into the console whatever we put in the parentheses.

Instructions
On line 1, create a variable myColor and give it a string value.
On line 2, print the length of myColor to the console.


From codcademy.com


*/