r/javascript • • Mar 09 '15

Things every JavaScript developer should know

http://ilikekillnerds.com/2015/03/things-every-javascript-developer-should-know/
326 Upvotes

118 comments sorted by

View all comments

4

u/Blitzsturm Mar 09 '15

To mash a few things together in an unclean but working fashion, this is an amusing trick:

[].forEach.call(document.querySelectorAll("button[class=flat-button]"), function(o, i)
{
	o.style.border = "1px solid red";
});