Make a program (or a function) that copies the exact text "Hello, World!" to the clipboard, and terminates.
-
\$\begingroup\$ It is not a duplicate. Copying to the clipboard != Delete clipboard contents ! @Phoenix, @ DJMcMayhem \$\endgroup\$ – sergiol May 4 '17 at 23:57
\$\begingroup\$
\$\endgroup\$
JavaScript (ES6), 19 bytes
Run in your browser's console.
copy`Hello, World!`
\$\begingroup\$
\$\endgroup\$
Mathematica, 31 bytes
CopyToClipboard@"Hello, World!"
\$\begingroup\$
\$\endgroup\$
Windows command shell, 23 characters
echo Hello, World!|clip