freeCodeCamp icon indicating copy to clipboard operation
freeCodeCamp copied to clipboard

Strange text - declare java variable - few lessons before also (JQuery)

Open brettstark73 opened this issue 11 years ago • 3 comments

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.');

brettstark73 avatar Oct 06 '15 01:10 brettstark73

Try changing MyName to myName

jlslew avatar Oct 06 '15 03:10 jlslew

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 .

brettstark73 avatar Oct 06 '15 03:10 brettstark73

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


bugron avatar Oct 06 '15 18:10 bugron