Javascript Write function displayWords to do the following Empty parameter list Initialize variable wordStr equal to HTM

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Javascript Write function displayWords to do the following Empty parameter list Initialize variable wordStr equal to HTM

Post by answerhappygod »

Javascript
Write function displayWords to do the following
Empty parameter list
Initialize variable wordStr equal to HTML element <hr />
Loop through the array words
Append to variable wordStr the current element in array words concatenated with HTML element <br />
d.) Update the value of HTML element id "js-words-found" to variable wordStr
HTML:
<!DOCTYPE html><head> <link rel="stylesheet" type="text./css" media="screen" href="boggle.css" /> <script type="text/javascript" src="jquery-2.1.0.js"></script> <script src="boggle.js" ></script></head><body> <div class="container"> <div class="grid-9"> <div id="js-boggle" class="boggle"></div>
<input type="text" id="js-word" class="enter-word" /> <input type="button" id="js-enter-word" class="btn" value=" Enter " oneclick="addWord();"/> </div> <div class="grid-3"> <div> Words Found </div> <div class="words-found" id="js-words-found"></div> </div> </div></body>
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply