Posts

Top JavaScript Coding Interview Questions And Answers (2023)

Write a code to display which character is coming how many times in a given string ? Write a function to check whether a string is a palindrome or not with time complexity of the code ? Given an array containing some numbers write a code to that will find out the missing number in the array's range ? Write a code to reverse all the words of a given string. For example : Input : “how are uoy” Output : “Woh era you” How to segregate 0s and 1s in an array in Javascript ? Write a function to check if an anagram of a string is palindrome or not ? Write a code to check if two strings are anagram of each other ? Write a code to group items of array by category ? How to get the maximum count of consecutive 1's in an array ? How do you write a factorial code in JavaScript ? Given an integer array, find the subarray with the largest sum, and return its sum ? How to merge two sorted arrays in JavaScript ? How do you check if a value is a prime number ? How to reverse a string in JavaScrip...

JavaScript Developer Interview Questions for Freshers

  JavaScript Developer Interview Questions for Freshers What are the data types in JavaScript ? What is an object in JavaScript ? In how many ways we can define an object in JavaScript ? How to define a class in JavaScript ? What is defineProperty() method of javascript Object ? What is scope in JavaScript ? Explain variable hoisting ? Explain closures in javascript ? Difference between null and undefined ? Difference between == and === ? What are the new features in ES6 , which were not there in previous JavaScript version ? Explain time complexity ? What is space complexity ? What will be the output of the below code: let obj ={ a: 10, vir : function(){ x(); console.log(this.a); function x(){ console.log(this.a) } } } obj.vir(); What will be the output of the below code for (var i= 0; i < 5; i++){ setTimeout(() => console.log(i)); } What will be the output of the below code :- var a = 90; doit(); function doit(){ console.log(a); var a = 10; } Expla...

JavaScript Interview Questions For 3 Years Of Experience

  What is Callback hell ? Explain promises in JavaScript ? Difference between observable and a promise How to create custom events in JavaScript ? Difference between prototype and _proto_ ? Explain prototypal inheritance in JavaScript ? Difference between for in and for of loop ? Difference between get and post methods  ? Difference between post and put methods ? When we pass an object to a function are they passed by reference or by value ? What are the design patterns in JavaScript ? What do u understand by the terms mutable and immutable in JavaScript ? What is Async and Await in JavaScript ? Is array a data type ? How can we overwrite any JavaScript inbuilt property (like array.push()) Explain exception handling in JavaScript ? Difference between a transpiler and a compiler ? How to apply conditional breakpoints in chrome browser debugging tool ? How to check if a number is an integer without using math function and without converting number into string or array ? Use of ...

JavaScript Interview Questions For 5 Years Of Experience

  JavaScript Interview Questions For 5 Years Of Experience What are the design patterns in JavaScript ? What is event loop in JavaScript ? How to deep clone in JavaScript ? How to flatten an array in JavaScript ? What is debounce in JavaScript ? Write a code to flatten the contents of an object ? How to create virtual dom in JavaScript ? What is critical rendering path ? What is a freeze method in JavaScript ? What are solid principles in JavaScript ? What is the seal method in JavaScript ? Difference between Angular and React ? How to watch variable changes in JavaScript ? How to create a change detection mechanism of JavaScript framework ? What is functional programming in JavaScript ? What is quick sort and what is it’s time complexity ? Explain bubble sort and insertion sort with example ? What is a REST API ? How to apply conditional breakpoints in chrome browser debugging tool ? Why storing JWT in cookie is safer than storing JWT in session storage or local storage? Is storin...