In programming you know the use of the logical negation operator (**!**), it reverses the meaning of a condition.
Your task is to complete the function 'negationValue()' that takes a string of negations with a value and returns what the value would be if those negations were applied to it.
```python
negation_value("!", False) #=> True
negation_value("!!!!!", True) #=> False
negation_value("!!", []) #=> False
```
Do not use the `eval()` function or the `Function()` constructor in JavaScript.
Note: Always return a boolean value, even if there're no negations.
def negation_value(s, val):
    if( len(s) % 2 ):
        return not val
    else:
        return not not val
def negation_value(s, val):
    if( len(s) % 2 ):
        return not val
    else:
        return not not val