I am confused on what is the difference between .innerHTML and .value in JavaScript. Here is my code:
.innerHTML
.value
Input string: &
.value gives you the currently-set value of a form element (input, select, textarea), whereas .innerHTML builds an HTML string based on the DOM nodes the element contains.