I did 2 phone interviews and then went in for an onsite. Everyone was very nice and I felt comfortable. However during the coding challenges, the interviewers were wrong twice. The interviewee had an html sheet print out that I had to debug and walk her thru. I pointed out that on one of the buttons with an onclick event (which triggered a function) needed parenthesis to invoke, however the interviewee said that is not true and that you dont need parenthesis, I did not want to argue with her so I just let it go. When I got home, i tested and I found out that I was correct and she was wrong. If you have <button onclick="fn">click</button>, it will not fire off the fn function, you do in fact need to add the parenthesis as I thought. The second thing was when I met with the head of engineering I was told to sort an array of objects by some properties that have integer value, if there are duplicates then he wanted the one that appeared first to stay that way after the sort. I went to use sort method and he told me that the sort method would not be able to this. However this seems to have been incorrect, as I tested it and sort method works great. See and test code below
let a = [{n:1, t:"a"},{n:2, t:"c"},{n:1, t:"b"},{n:1, t:"d"},{n:3, t:"e"},{n:4, t:"f"}]
function test(arr){
return arr.sort((a,b) => a.n - b.n)
}
test(a)
Over all I thought I had a good interview, I did have a dumb moment with the easiest challenge of implementing push() but ended up waking up and getting it right. I hope my interviewees will take an honest look at all this and call me back with an offer ;) (im kidding)