How to Implement a Stack in JavaScript

preview_player
Показать описание
In today's video I'll be showing you how to implement a stack data type using JavaScript. This is very simple to do using ES6 classes 🙂

For your reference, check this out:

If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!

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

Thanks dcode love your work you've thought me so much

CreativeTutorialsWeb
Автор

I liked your content always... before ⌚ watching....👍

softwarejobkosam
Автор

Hi Dom. I had no idea you could export default and import in node. Is this better that using the standard module and require ? What are the benefits ?

russelldriver
Автор

Thank you so much, this was very well explained

loveshamie
Автор

Thank you .. It would be great if you could make a tutorial for making a professional shopping cart

EXORT
Автор

Oh wow, the audio is better....well done

Dexterx
Автор

This dowsn't follow the FIFO (First in First Out) though
more like
Last in First Out

IF i understood it correctly

magnus
Автор

Hey! Thanks for this video tutorial. Tom, can we implement Stack another way? For example via a list.

yevheniibabenko
Автор

But why wrap pop in pop and push in push? Why not just use them as native functions?

whatthefunction
Автор

Will there be consequences in performance if I do it that way instead of built-in Array?

Anyways, I learned something. I didn't know you can make your own Array structure. OOP is awesome.

agent-
Автор

Why so specifically and only japanese car companies? xD

Creepystutorials
Автор

Last in First out....for stack...First in first out for queue

digiartpassion
Автор

I don't understand why it is called a JavaScript Stack as we have to build it from scratch.

akj
Автор

All I heard was "go eat some pizza"

whatthefunction