Remove specific item from array in JavaScript
We can remove element from array with different ways. But if we want to remove specific element from array then we have to think different approach. 1. Using indexOf and…
We can remove element from array with different ways. But if we want to remove specific element from array then we have to think different approach. 1. Using indexOf and…
These are few Javascript Ouput based interview question, which I faced during my interview process. Question 1. console.log('val1--val:',val1); val1 = 10; test(); var val2 = 20; const test = ()…
These are few coding interview question which I faced during my interview journey with different companies. I hope you will find helpful it. 1. Write a program for anagram. An…
Some time we have a nested list which we want to make in one dimensional array or you can say we want to flat it. def flat(arr): #base condition if…
There are various way to reverse the string in javascript. Let try few ways to achieve same. 1. Using inbuilt methods let str = 'singhak'; let strArray = str.split(''); let…
Commonly asked OOPS Interview Questions 1. What is Object Oriented Programming? Object Oriented Programming (OOP) is a programming paradigm where the complete software operates as a bunch of objects talking…
In the series of core java Interview question and answer this is part-8. You can other parts also: Core Java interview question-answer [part – 1]Core java Interview questions on Coding…
In the series of core java Interview question and answer this is part-7. You can other parts also: Core Java interview question-answer [part – 1]Core java Interview questions on Coding…