1)Write a code to reverse a string Way 1 : split the string into array reverse the array join the array Programme : <div id="id1"></div> <script> var str = "apple"; …
Category: Data Structure in Javascript
Stack follows the LIFO(Last in first out) pattern.We can see this pattern in many real world examples. For ex : A deck of cards, where the last card will be …