0

How do I fix this code?

I was working on a random Sentence generator but apparently it doesn't work. Is there a bug in it or is there another way to do it? https://code.sololearn.com/WR0Q3wGY5S0C/?ref=app

10th May 2018, 10:41 PM
Haziq Hairil
Haziq Hairil - avatar
1 Answer
+ 3
1. comment line 1( window.onload = function() { ) and line 16 ( } ) with simbols // 2. move line 5 ( var out = document.getElementById("out"); ) into the body of function "generate" https://code.sololearn.com/WOz8TtrNEWPR/?ref=app
10th May 2018, 11:11 PM
Dmitriy
Dmitriy - avatar