- How would you explicity notify the node run loop to execute some code. For example, we have C++ calling JavaScript. C++ code is not aware of the JavaScript/Node event loop
- Show me your ways of getting rid of callback hell.
- How would you handle uncaught exceptions in node?
- This takes a long time in Chrome but not in Node why?
console.time("cycle")
for(var i = 0; i < 5000000; i++) {
//nothing
}
console.timeEnd("cycle")
- What is the difference between
import
and require
- What are some benefits of
@decorators
- Pseudo code a pubsub implementation using
node
, websockets
and realm
given the API below
// Observe Realm Notifications
var Realm = require('realm');
const TaskSchema = {
name: 'Task',
properties: {
body: 'string',
isDone: {type: 'bool', default: false},
timestamp: {type: 'date', default: new Date()}
}
};
// Initialize a Realm with Car and Person models
let realm = new Realm({schema: [TaskSchema]});
realm.objects('Task').filtered('isDone == true').addListener((tasks, changes) => {
//changes.insertions
//changes.deletions
//changes.modifications
});
// Unregister all listeners
realm.removeAllListeners();
- Are you familiar with Webpack, JSX, Gulp, Babel and or TypeScript?
- How would you create middlewares for express that are independent, testable, and well documented,
- What do you like about Realm
- What would you improve about the Dashboards