javascript problem solving interview questions

Solutions on MaxInterview for javascript problem solving interview questions by the best coders in the world

showing results for - "javascript problem solving interview questions"
Nicolò
20 Jan 2020
1Here are some my selective questions...
2Q1. Explain what a callback function is and provide a simple example
3Q2. What are the differences between cookie, local storage and session storage
4Q3. Write a simple function that returns a boolean indicating whether or not a string is a palindrome.
5Q4. How would you check if a number is an integer?
6Q5. Implement enqueue and dequeue using only two stacks
7Q6. What is a promise. Why do you need a promise?
8Q7. How would you use a closure to create a private counter?
9Q8. How does the this keyword work? Provide some code examples
10Q9. How do you add an element at the begining of an array? How do you delete one from the end?
11Q10. Write a recursive function that performs a binary search
12...
13extra: Why do you need JavaScript?