Can someone please explain the logic in the below snippet. The code actually fetches the names of menus from backend and displays it in nav bar. I have added a record in table b