How does JS copy the content of the value returned by a variable or function?

for example, I have a variable var a = 1 . I want to assign this variable to the clipboard. What can I do?

in addition, I would also like to ask, if there is a copy of the content in the clipboard, how to get this content and paste it to the console?

Mar.02,2021

clipboard.js


now young people are so lazy?
js clipboard

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3840d-40687.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3840d-40687.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?