Creates a <button></button>
element.
The first parameter, label
, is a string that sets the label displayed on the button.
The second parameter, value
, is optional. It's a string that sets the button's value. See MDN for more details.
Examples
Syntax
createButton(label, [value])
Parameters
label
label displayed on the button.
value
value of the button.
Notice any errors or typos? Please let us know. Please feel free to edit src/dom/dom.js and open a pull request!