Common Javascript Interview Questions [ removing duplicates from array in javascript ]

preview_player
Показать описание

Getting hired as a self taught web developer is already tough. Don't make it harder by not learning javascript fundamentals.

Check out this javascript interview questions freshers and learn how
find all duplicates in an array.

As always thank you for watching, and let me know in the comments what other javascript interview questions you would like me to cover.

I know that there is a lot of other how-to code channels out there, so thank you for choosing ours.

---------★ POPULAR VIDEOS ★----------

⚡️ CODING MOTIVATION: Fun Video To Keep You Motivated:

⚡️ MY CHANNEL: Am I Too Old To Learn To Code After Thirty:

⚡️GOOD ADVICE: Should I Learn To Code in 2020:

⚡️ADVICE ON LEARNING: My View On Taking Courses:

⚡️BEST PROGRAMMING LANGUAGE 2020:

⚡️FIRST REACT LESSON: Intro to React and JSX:

Thank you for your time. Your support is what keeps us going.
Рекомендации по теме
Комментарии
Автор

Thanks for checking out this video. Been doing a lot of interviews so figured I share some of the questions I have been encountering.

CodingAfterThirty
Автор

A good message here mate, always good to be refreshed on the fundamentals. I must admit, though I know the fundamentals, I'll often lean on google first result, to save me the mental energy. It's useful short term, but eventually leads for a level of complacency! :) I'm off to study JS docs! Thanks for the video man.

LostRelicGames
Автор

Just found your channel. I really like your method of explaining and discussing topics. I’m 30 and trying to change my career into front end web development so I am so happy to find your channel.

justindlb
Автор

I really needed this, it's so easy to forget this stuff!

JordanAF
Автор

If you use a for loop and indexOf the time complexity will be O(n^2)
If you use a set you will get a time complexity of O(n)

const removeDuplicates = (items) => [...new Set(items)];

danieldweebler
Автор

wooo
it is great your answer
if you dont mind me to bring mine as well
Javascript has introduced a new datastructure called set()
const myArray = [ 'alpha, ...restOfTheItems ' ] ;
const nonDuplicateItems = ( )=> {
// down will return an object with non duplicate array
const item = New set( myArray )
// then we use the spread operator
const result = [ ... Item ]
return result
}
let's call that function
nonDuplicateItems()
we have that result of non duplicate item for sure

gabrielfono
Автор

do they allow you to use google during these interview challenges?

kitkatk
Автор

I know for a fact there's a method for it, I just don't know exactly what it's called.

BusinessWolf
welcome to shbcf.ru