I've been building a virtual rubik's cube on codepen using JS and CSS only. - Forgive me any apparent stupidity, I have been coding less than 3 months, and less than 1 month in JS.
I currently have made two versions, but for version 3 I need to generate as much of my HTML as possible using JSON and JS loop structures. Despite doing tonnes of reading on JSON, I can't quite get my head around the concept of using it to generate HTML like I have been with standard JS arrays. See codepen link-- http://codepen.io/Peachey_A/pen/hEcDH
Whilst I have used a little bit of JQuery to add class attributes in version 2; I would like to steer clear of it in the generation process as my goal is to understand JS before getting too involved with libraries.
Any advice of specific websites or code snippet examples would be greatly appreciated.
Thanks