Hi
I'm not too sure about the first screenshot, but on the second one there are quite a few typos. Essentially the same typo repeated multiple times, i.e. you have * where you should have =
It should be
var clone = this.clone;
// ...
clone.onAddToScene = null;
this.clonedObject = clone;
clone.clonedObject = this;
Also looking at your second screenshot, notice the little white cross on a red box in the upper left corner. That indicates a syntax error, if you put your mouse over it it usually tells you something useful about fixing the error.
If you're following the youtube video tutorials, I recommend setting the video quality to 1080p (you can do it manually if it doesn't do it automatically for some reason), to read the text more clearly.
I hope this helps, let me know how it goes.