2 ms·
I prefer document.getElementById("myKitten") because it's easier to read and more describing then just $("#myKitten") If it's too long to type, and you use it
by z3t4 12y ago
I prefer document.getElementById("myKitten") because it's easier to read and more describing then just $("#myKitten")
If it's too long to type, and you use it often, make a macro for it.
When naming stuff, keep it short and simple though.
Also, you shouldn't hide logic behind names. I was actually wrong about evens.map(v => v + 1); If that's what you want to do, then write that. It's a thin line though, it might be hard to know what "v" is in that context.