Subtract my odds from my evens Given a non-negative integer, return the absolute difference between the sum of its even digits and the sum of its odd digits.
Default Rules

Standard Loopholes apply.

You can take input and provide output by any standard Input / Output method.

You may take input as a String, as an Integer or as a list of digits.

This is code-golf, so the shortest code in bytes in every language wins!


Test Cases

Input ~> Output

0 ~> 0 (|0-0| = 0)
1 ~> 1 (|1-0| = 1)
12 ~> 1 (|2-1| = 1)
333 ~> 9 (|0-(3+3+3)| = 9)
459 ~> 10 (|4-(5+9)| = 10)
2469 ~> 3 (|(2+4+6)-9| = 3)
1234 ~> 2 (|(2+4)-(1+3)| = 2)
Jelly, 6 bytes

-*æ.¹A


Try it online!

How it works

-*æ.¹A  Main link. Argument: A (digit array)

-*      Raise -1 to A's digits, yielding 1 for even digits and -1 for odd ones.
    ¹   Identity; yield A.
  æ.    Take the dot product of the units and the digits.
     A  Apply absolute value.