We have used multiple libraries so far like jQuery, React and underscore. For frameworks I'm not sure but I think we can consider react, angular and backbone as frameworks. The difference between these terms is mainly about the inversion of control; where your code calls a library function when needed to accomplish a certain task like calling underscoe.js functions. However, it's different for frameworks where your code will be called by the framework itself, and it's regularly more complex.
Stack is like a pile of books placed on top of each other. We can add new books to the top and can remove them from only the top because stacks are LIFO which means last-in, first-out. Queues on the other hand are the opposite, which is FIFO meaning first-in, first-out. So adding an element to the queue will be the same but removing will happen to the first element not the last one. An example of a queue would be the wait line in front of any kind of service we see around us like the bus station or the shops,....etc.
Comments
Post a Comment