Performance nerds might say `getAttribute()` is better, but unless you’re building a AAA game, just use what’s readable.
`.dataset` looks nicer, and modern JS is all about clean code.
Check out jsPerf if you wanna test speed yourself!
`.dataset` looks nicer, and modern JS is all about clean code.
Check out jsPerf if you wanna test speed yourself!
