MORE Front-end Engineering Interview Questions

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?

  1. How can you increase the accessibility of a website?
  2. Write the HTML & CSS for this:
    |-----------------------------------------------------------------|
    | Link 1				                   Link 2 |
    |-----------------------------------------------------------------|
    
  3. How can you implement inheritance in Javascript?
  4. 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;
    }
    
  5. 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);
        }
    }
    
  6. What are the differences between strict and quirks mode?
  7. What are some common security issues with web applications?