Manipulating and Sorting Arrays in JavaScript

preview_player
Показать описание
An introduction to the idea of being able to add or remove items in the middle of an Array. You can replace a single item in an Array with a whole new list of items.
Additionally, how to sort an Array and how to locate items in an Array is discussed.

Рекомендации по теме
Комментарии
Автор

i have watched almost 10 channels and yours is the best, i need a teacher that treats me like an idiot, giving simple examples, other youtubers act like everyone already knows codes and gives an example of a whole program wtf, thank you

yunusmile
Автор

i don't know why am commenting this late, but i have been watching your videos since 2 years today. and when ever i forget something or just need to refresh my mind, i turn to your channel. thanks much for the great work, simplicity in your videos makes it even more recommending to beginners

ProgSoundN_A-cube
Автор

I have used many channels to learn JavaScript but now I'm going to used your channel to solidify my knowledge of JavaScript before I move on to React.

jetspray
Автор

If youtube really cares web development technology, they should make your channel appear first whenever viewers search web-related things. Many care about new things and they do forget all those tricks are based upon these fundamentals. And you are the only one who can explain everything that everyone understands.

rotrose
Автор

Just found you video after struggling on my own . Ur videos simplifies things a lot. Thank you very much for your time.

anthonyfrimpong
Автор

Thank you so much for sharing this knowledge!.I have used many channels to learn JavaScrip and yours are the best so far!
after struggling on my own . Ur videos simplifies things a lot and helped me alot!!!

ilyafredriksson
Автор

Thank you so much for sharing this knowledge with us.👍
Small tip, if you want to add values into your list instead of removing them, you can do that with splice
Splice(1, 0, add anything)
Use 0 for second parameter.

vinodliyanage
Автор

splice(a, b, *(c, d, ..., n)) seems much better than push, pop, shift, and unshift. It's 1 method that can behave like all 4. Simpler and more generic. Thanks Steve! 🙌🏽 The Star Wars are strong with you btw 😊

ozzyfromspace
Автор

Second round, amazing tutorials. Thank you.

rotrose
Автор

Thanks Steve, I hope I can buy you a beer sometime in Amsterdam! Really useful videos you make!

bondimoni
Автор

I remember when i downloaded 108 videos of your course just to stay on track😎😂

ProgSoundN_A-cube
Автор

Watching this on March 2021 😁. Thanks for the video. It really helps as i am struggling with JS

mnfak
Автор

Well you gained a new Sub. Great help as I am learning JS

TheUXGrind
Автор

I´d like to add something: if you want to add an item into the array using a non-existent index, you can do it using splice function too. Not conventional but...
Ex:. Considering the array [ 'Rey', 'Kylo', 'C3PO' ], if you want to add at the end of this array you could write: characters.splice(3, 1, 'R2D2');
The array, when printed on console, will look like: [ 'Rey', 'Kylo', 'C3PO', 'R2D2']
Is it a bug? IDK.
Anyways, thanks for your videos, the´re great!

logancarvalho
Автор

suppose i have an array a = [abc1, abc2, 2, 3
and i want to remove items which starts with abc.. . how can this be done

diperman
Автор

It will be better to understand and will be clean if you comment unnecessary console.log() . Overall you rocked.

Manish-jtfi
Автор

console.log(a2, delete a2[a2.length-1], a2);
I am not getting the correct result here. First and last a2 in console.log results same output which is the result of after deleting an item from the array.

damo
Автор

Tip: You can search for a sequence of elements:
characters.indexOf('Han', 'Chewie')

johnywhy
Автор

mid-2025 here. Good stuff...it's funny watching him use Brackets ;)

jamesmcgee
welcome to shbcf.ru