And in exchange for writing 67 fewer characters…
Because this…
$('.sandwich').addClass('mustard');
Is a few characters shorter than this…
document.querySelectorAll('.sandwich').forEach((sandwich) => { sandwich.classList.add('mustard'); });
And in exchange for writing 67 fewer characters, we sent 87.5 kb of JavaScript to our users.