Initially: phone call
Next: an online exam - about 30m to 1h
around 20 questions.
some questions requires a bit of a deeper knowledge, some were really questions to junior developers
Interview questions [7]
Question 1
What is the default variable scope in Node.js applications?
Write a small code snippet to convert the following strings array to an array of the lengths of those strings.
var stringsArray=[“banana”, “pillow”, “of”, “dogs”, “machine”]
Please write more efficient implementation of the next function:
const someFunc = async ()=>{
const a = await somePromise();
const b = await someOtherPromise();
return [a,b];
}
What is the error that would be thrown from the next code?
//a.js
require("./b")
const hi = () => { console.log("hi") }
module.exports=hi
//b.js
const a = require("./a");
module.exports = a
//c.js
const b = require("./b")
b.hi()
//CMD
node c.js