I changed the function with ^ and removed the other two.
Thank you,
Yuliya


On Mon, Apr 14, 2014 at 12:14 AM, Hank Yates <notifications@github.com>wrote:

> In students/yuliyaz/xor.js:
>
> > +//XOR with ^
> > +
> > + var FirstName,
> > +    LastName;
> > +FirstName = 'h';
> > + LastName = '';
> > + function preferredName (){
> > +var Name = FirstName + LastName;
> > +var FirstOrLast = ((FirstName && !LastName)^(LastName && !FirstName)) ? Name : false;
> > +return FirstOrLast;
> > + }
> > +
> > +
> > +//XOR with || and &&
> > +
> > + var FirstName,
>
> Mind just leaving one function in the file? All the different approaches
> and test cases are cool but at the end of the day we need to go with one
> approach and know why it's better than the others.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/codefellows/sea-c11-javascript/pull/44/files#r11572996>
> .
>