JAVASCRIPT
Posted: Fri Jul 08, 2022 6:43 am
JAVASCRIPT
2. Write function addWord to do the following a. Empty parameter list b. Set element idx of the words array equal to the value of HTML element id "js-word" c. Increment variable idx by one d. Update the value of HTML element id "js-word" to an empty string e. Call function displayWords, passing zero arguments
2. Write function addWord to do the following a. Empty parameter list b. Set element idx of the words array equal to the value of HTML element id "js-word" c. Increment variable idx by one d. Update the value of HTML element id "js-word" to an empty string e. Call function displayWords, passing zero arguments