When through the cookies and localstorage in angularjs, they meant to be the same and still have doubt in it so, my questions are:
1.What is the main difference between cookies and localstorage?
2.On which scenario we make use of these?
3.How do they differ from each other?
4.Give an example for cookie and localstorage (for better understanding)