ABAYTHON

Think beyond console.log()

While working with javascript we often use this popular method console.log(). During debugging when we need some insight about the happenings we use console.log(). There are a lot more methods to debug your code alternative to console.log(). These alternative console.log() methods are useful in data visualization, debugging etc., Alternative to console.log(): 1.console.table() This console.table() method …

Think beyond console.log() Read More »

How to implement Stack data structure in JavaScript?

We have already seen about Array Data Structure. Stack data structure is implemented using arrays. With push(), pop(), shift(), unshift() we create stack . For creation of stack we always prefer push() and pop(). Now let us implement stack data structure. Methods to implement Stack Data Structure : Program to implement Stack : Output: