I’ve been interviewing front-end engineers for the past few days and I have a ton of new questions that I ask interviewees. Instead of writing up the answers, how about you try to answer them?
- How can you increase the accessibility of a website?
- Write the HTML & CSS for this:
|-----------------------------------------------------------------| | Link 1 Link 2 | |-----------------------------------------------------------------|
- How can you implement inheritance in Javascript?
- Write a one-line piece of JavaScript code that concatenates all strings passed into a function.
function concatenate(/*any number of strings*/) { var string = /*your one line here*/ return string; } - Is there anything wrong with this code?
function attachEventsToListItems( ) { var oList = document.getElementById('myList'); var aListItems = oList.getElementsByTagName('li'); for(var i = 0; i < aListItems.length; i++) { var oListItem = aListItems[i]; oListItem.onclick = alert(i); } } - What are the differences between strict and quirks mode?
- What are some common security issues with web applications?
