Javascript
How would you go about writing a JavaScript function named getElementsByStyle to find DOM elements with a specific CSS style, and what traversal strategy would you use?
Frontend Engineer
Asana
Amazon
Netflix
Siemens
Groupon
Interview question asked to Frontend Engineers interviewing at Google, Sharp, Groupon and others: How would you go about writing a JavaScript function named getElementsByStyle to find DOM elements with a specific CSS style, and what traversal strategy would you use?.