Strange text - declare java variable - few lessons before also (JQuery)
Challenge Waypoint: Declare JavaScript Variables has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
// var ourName = "Free Code Camp";
var MyName = "Brett";
// Only change code above this line.
// We use this function to show you the value of your variable in your output box.
// You'll learn about functions soon.
if(typeof(myName) !== "undefined"){(function(v){return v;})(myName);}
Undefined.
assert((function(){if(typeof(myName) !== "undefined" && typeof(myName) === "string" && myName.length > 0){return true;}else{return false;}})(), 'myName should be a string that contains at least one character in it.');
Try changing MyName to myName
dang, thanks!
Brett Stark
Phone: +1 847 481 9736 Skype: brett.stark GChat: [email protected] Twitter: http://twitter.com/brettstark LinkedIn: http://linkedin.com/in/brettstark
On 5 October 2015 at 22:09, Jonathan Lee Slew [email protected] wrote:
Try changing MyName to myName
— Reply to this email directly or view it on GitHub https://github.com/FreeCodeCamp/FreeCodeCamp/issues/3600#issuecomment-145730220 .
Closing this issue as it is solved. Feel free to reopen if you still experience problems, thanks.
Please review the Guidelines for Contributing, thank you!.