As an interviewer
I recently interviewed a front end dev. I ask him the following questions. Of course in Mandarin Chinese:
- Have you used Vue.js before?
- What AJAX library you use?
axios
?jQuery
? - Do you know how to get JSON data, then render it to the web page?
- Do you know how to add custom headers like
Authorization
? - What would you do if you find something on the web page disappears?
- What if you got
CORS Request Blocked
?
- What if you got
- What would you do if you find the AJAX request fails?
- I recently use
axios
to send a POST request but find that no parameters have been sent in the request. What do you think?- My
Content-Type
isapplication/x-www-form-urlencoded
and I am sure that my parameters are correct. - Here's the hint.
- My
I expect this guy know the following issues by these questions:
- AJAX call
- HTTP requests
- How to know where the problem exists
CORS
issue,Content-Type
inaxios
issue- How to find help
An issue I really concern but haven't ask is about comments and documents writing: I don't know how to ask such questions. Maybe I can teach him when he truly becomes my office mate.