Sometime it is easier to learn something with graphical representation than with textual one. I experimented on this using Blockly and three.js. You controls a robot in webgl and modify its behavior as you wish. Definitly very fun way to learn programmation thru game development.
The language you use to code is Blockly, a web-based, graphical programming editor.
Always trying to make three.js easier for beginners. Now you can use it without even knowing javascript. Maybe without even knowing how to code itself.
Thanks to Blockly, you can't do any syntax error. Thanks to three.js you got fancy display where you can have fun customizing your very own character.