I need to shuffle multiple arrays using the same function so that it randomizes the words up in each sentence.
Using HTML i then need a button that starts the shuffle, with the outputted sentences with line break between each for example:
var array1 = ["The, "Man", "and", "his", "dog"];
var array2 = ["went", "for", "a", "walk", "outside"];
On click of a button "shuffle" im trying to get the output to display on seperate lines like this:
Man and dog his the
for a outside walk went
Thanks