- What is QBuilder for other than creating HTML tags inside of the JS?
- What are the last two parameters inside of the function call doing? The `{}` and the variable after it don't seem to make sense. Especially because the last param appears without square brackets in the first invocation, and with square brackets in the second invocation.
```
var messageText = 'SAMPLE TEXT';
var c = this.questionContainer;
var tc = QBuilder('span',{},messageText);
var ic = QBuilder('div',{},[tc]);
$(c).appendChild(ic);
```
Best answer by welork
View original