interview:developer:20170423:start

This is an old revision of the document!


20170423 nodejs interview

Reference: https://stackoverflow.com/questions/1684917/what-questions-should-a-javascript-programmer-be-able-to-answer

Why would this code not work as expected? Is anything missing? class Polygon {
// ..and an (optional) custom class constructor. If one is
// not supplied, a default constructor is used instead:
// constructor() { }
constructor(height, width) {
  this.name = 'Polygon';
  this.height = height;
  this.width = width;
}

}

Why do the anchors, when clicked on, alert -1 instead of their respective counter inside of the loop?

The difference is scoping. var is scoped to the nearest function block and let is scoped to the nearest enclosing block.

  • Function.prototype.apply() 是什麼呢?
  • ES6 跟 ES5 有什么差别?请以代码举例。
  • What is JSON?
  • Explain MVC
  • 什么是 Callback?
  • 什么是 Promise?
  • Callback 跟 Promise 有什么差别?请举例。
  • 什么是设计模式 Design Pattern?请指出三个设计模式并以代码说明其中一个。

假设你要做一个图书管理系统。你会怎样设计 MongoDB document 以达到以下需求?

  • 读者能以作者姓名丶分类丶书名丶出版社丶年份找书籍。
  • 请写出以作者姓名或书名的 Query?
  • 有没有使用 Node.js + Express + MongoDB + Mongoose 的经验?请举例。
  • 有没有使用 oAuth 及 Passport.js 的经验?请举例。
  • 有没有使用 Backbone.js 的经验?什么是 Model, View?请举例。
  • 有没有使用 ReactJS 的经验?请举例。
  • interview/developer/20170423/start.1501483071.txt.gz
  • Last modified: 2017/07/31 14:37
  • by don.lee