Skip to content

Commit

Permalink
Update raw-text.txt
Browse files Browse the repository at this point in the history
the MDN exercise file is missing "random" variable
  • Loading branch information
Coach-G authored Dec 13, 2019
1 parent 076be8e commit 8fc207e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ const randomize = document.querySelector('.randomize');
const story = document.querySelector('.story');

function randomValueFromArray(array){
return array[Math.floor(Math.random()*array.length)];
const random = Math.floor(Math.random()*array.length);
return array[random];
}

2. RAW TEXT STRINGS
Expand Down

0 comments on commit 8fc207e

Please sign in to comment.