Mean Stack Developer Questions Basic: 'False'
Mean Stack Developer Questions Basic: 'False'
Basic
return function(){
return i++;
}
}
How would you implement currying for any functions?
What will you see in the console for the following example?
var a = 1;
function b() {
a = 10;
return;
function a() {}
}
b();
console.log(a);
Logical
How can a string “I am going to seebiz employee" be reverse like "I ma gniog ot zibees
eeyolpme"? Please note that the words are in place but reverse.
Find a missing a number (only 1) from an unsorted array of numbers, range 1 to 100.
Write a function to count values with zeros upto ‘n’. E.g. if n= ‘20’, answer will be 3 (0, 10, 20)
How can you evaluate the balanced parentheses in a given expression? Write code
Write a function to determine if given number is a power of 2. If yes return the number else
return -1.
You have a set of date intervals represented by StartDate and EndDate. How would you
efficiently calculate the longest timespan covered by them?
JS concepts
Performance
What are the best practices of code testing? Please write minimum 5.
What is the purpose of a code linting tool?
What are the differences between Long-Polling, Websockets and Server-Sent Events?
o Date
o Age
o If-Modified
o Transfer-Encoding
o ETag
o X-Frame-Options
Algorithms