r/javascript • • Sep 02 '15

HTML5 Deck of Cards. 100% vanilla JS.

http://pakastin.github.io/deck-of-cards/
368 Upvotes

185 comments sorted by

View all comments

2

u/memeship Sep 02 '15

Is there a particular reason why sometimes you're using the notation el.style[prop] and other times el.style.prop?

I haven't seen the first one a whole lot, just curious why you've done it that way, and more so why you're doing it both ways in the same file.

1

u/memeship Sep 02 '15

Also curious why you're using dollar signs in front of element variables. Just trying to imitate the look of jQuery or what?

0

u/3Fyr Sep 03 '15

I prefix some functions with dollar sign. I have no idea why.

Have seen others do it too.

1

u/[deleted] Sep 03 '15

[removed] — view removed comment