OP solved it, closing
What if lives is -1, -2 ...? ^^
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time.
There is only one argument there. It's the one inside the parentheses. And the method is applied to a string. There is an implicit coercion to integer from string involved.
& is a bitwise operator which in this case returns 1 when the idx is odd and 0 when the idx is even.
&
It maps ASCII code to alphabet position
why -96?
Yes it's also hurtful to atheists
Dont understand what kind of error is expected, tried
throw new Error('error already dead') }
any suggestions?
Loading collection data...
OP solved it, closing
What if lives is -1, -2 ...? ^^
This comment is hidden because it contains spoiler information about the solution
Please use spoiler flag next time.
There is only one argument there. It's the one inside the parentheses. And the method is applied to a string. There is an implicit coercion to integer from string involved.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
&
is a bitwise operator which in this case returns 1 when the idx is odd and 0 when the idx is even.It maps ASCII code to alphabet position
why -96?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Yes it's also hurtful to atheists
Dont understand what kind of error is expected, tried
any suggestions?
This comment is hidden because it contains spoiler information about the solution
Loading more items...