I am STUCK on the Functions & if/else in Codecademy. I have tried everything I can think of and I am really having difficulty with this problem. I stumbled upon this post by Dave Ward: http://bit.ly/jlRVVC. No doubt the article is intended for seasoned programmers, but I found it helpful nonetheless. I realize that the placement of curly braces can make or break your code. I am going to need to have a better understanding of this before moving forward. Anyone out there have any pointers or advice? Codecademy said it expected an identifier and instead saw “else.” It might look a little gross, but here’s my code.
var creditCheck = function (income)
if (income >= 100);
return (“You earn a lot of money! You qualify for a credit card.”) };
return (“Alas you do not qualify for a credit card. Capitalism is cruel like that.”);
(prompt (“How much money do you make?”));
Thanks everyone! Hope your JS is going well! I would love to hear some more stories of your progress to keep me going!