Khan Academy has a button for sharing your CS project or program underneath the coding window.
Pressing the button works, but the resulting share link and code to embed your project on your own web site sometimes cannot be copied.
This is a know error which occurs in Firefox. We apologize for the inconvenience.
Switch browser. The functionality works in Chrome and may work in other browsers.
(Workaround initially published by user here.)