Một vài câu hỏi test Full-stack engineer (JavaScript)
Chúc các bạn làm bài tốt
1. What is Callback? How do you solve callback hell?
2. What is MVC architecture? Please explain the function of each component?
3. Have you ever used AngularJS? What are Angular Directives & Services?
2. Skill-based Section 1
var arr1 = "john".split(''); var arr2 = arr1.reverse(); var arr3 = "jones".split(''); arr2.push(arr3); console.log("array 2: length=" + arr2.length + " last=" + arr2.slice(-1)); console.log("array 1: length=" + arr1.length + " last=" + arr1.slice(-1));
1. What will the code above output to the console and why
2. Have you ever used Mongodb? Can you write mongo query to figure out all documents which contain string “AA” in “name” field & “dateCreated” is today?
3. Skill-based Section 2
Ex: Input array: [1, 2, 3, 4, 4, 5], N = 7 => Output: 3, 4 3, 4
1. Given an array and an integer N, print the all pair of numbers in the array that has sum equal to N. Example above
2. What’s the complexity of your algorithm on the question above?
Last updated