Trying to work with an undefined variable?

I was working on the Facebook Request API and found that when I close the popup and don't invite anyone I was getting an error that

<pre>Response was undefined</pre>

I initially tried to see if the variable was empty and that didn't work.  I stumbled upon this gem the typeof operator and this was magic.  Now I can check to see if the response ...

 
Read More