Tell us what’s happening:
Describe your issue in detail here.
Your code so far
var MyName; Allison;
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Link to the challenge:
You are close.
Remove the Allison and lowercase the
My. Later on, you will learn how to give variables value with different data types such as a string, number, object (more advanced), etc.
I’ll spoil a little.
var myName = "Allison"
This would be the correct way to store a name to a variable. It is called a string and is used for text. If you just say
If the variable has only 1 word, that also will be in full lower case.
Yes, the code will work even if it starts with a capital letter but it is good practice to use camelCase while using variables.
There are cases where the variable might be fully upper cased but thats another story
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.