how to check in js if element is li or is button

Solutions on MaxInterview for how to check in js if element is li or is button by the best coders in the world