sample javascript techncial interview questions code example

Example 1: puzzle interview questions javascript

// What is the Output var Employee = {    company: 'xyz'}var emp1 = Object.create(Employee);delete emp1.companyconsole.log(emp1.company);// Output  'xyz'

Example 2: asking questions javascript in console

var readline = require('readline');

var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout
});

rl.question("What do you think of node.js? ", function(answer) {
  console.log("Thank you for your valuable feedback:", answer);

  rl.close();
});