Ever wanted to copy something to the clipboard programmatically using JavaScript? Here’s how to do it for few different use cases.