Salesforce Fact #582 | Pass selected records from lwc datatable to apex

We can pass selected records from LWC datatable to apex using imperative apex on click of a button. Attached are the screenshots.
This blog contains some of the Salesforce facts which I have found quite interesting. Happy learning.