Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
I just found this Codecademy and I'm a bit lost on one of the first exercises.

I typed var myName then typed myName = Robert successfully. It then asked me to enter full name (myFullName), which I entered var myFullName = Robert Jones, but it says that's wrong. Any idea where I went wrong?

Make sure you have your quotes and semi-colon in the right place.
 
Great to finally find a thread on this! I gave CodeAcademy a try long ago and completed course 1 and 3 successfully. However, in course 2 I am stuck.

Titled:
JavaScript Quick Start Guide

Exercise:
Booleans

Problem #3:
Bang Operator

Problem Statement:
The bang operator (!) is used to change a truthy value to a falsy value or vice versa.

For instance, !true is false. Similarly, !null is true because null is falsy.

We can use this to check if something is not true.

Work through the example and then hit enter to continue.

My Approach:
Code:
function sad(value)
{
  // If a value is falsy, return the string ':('.
  // Otherwise, don't return anything.
  if(!value)
  {
    console.log(":(");
  }
  else
  {
    console.log("");
  }
}

Result:
Code:
:(
Oops, try again.

What exactly am I doing wrong?
 
My Approach:
Code:
function sad(value)
{
  // If a value is falsy, return the string ':('.
  // Otherwise, don't return anything.
  if(!value)
  {
    console.log(":(");
  }
  else
  {
    console.log("");
  }
}

Result:
Code:
:(
Oops, try again.

The requirements to pass this exercise are "If a value is falsy, return the string ':('. Otherwise, don't return anything.". You are not returning anything from your function.

Think about what the requirements are asking for and what you are doing in your code that doesn't satisfy them.
 
Sorry about the blank reply...I just posted a huge message about a Codecademy exercise that's not working but should. I just now realized there are discussion forums on the site, and they say there's a bug in that exercise. :)
 
I just found this Codecademy and I'm a bit lost on one of the first exercises.

I typed var myName then typed myName = Robert successfully. It then asked me to enter full name (myFullName), which I entered var myFullName = Robert Jones, but it says that's wrong. Any idea where I went wrong?

Also anyone know other sites like Codecademy.com or CodePupil.com?

I'm an eager beaver and want to create my own web app in next 3 months!

Stanford has some of their classes available for free on their web site. Some of them are also on iTunesU. I'm doing their ios programming course now. They have a few interesting EE courses I plan to do also.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.