You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm really new to JS and I'm at the very beginning of learning. So this might be a "dumb" question.
But how do I set up the array correctly in this case?
I've put this in my <head>
<script>
var forceFeed = new Array();
window.words = ['lorem', 'ipsum', 'dolor', 'sit', 'amet', 'adipsing', 'consectetur', 'elit', 'sed', 'commodo', 'eu', 'ligula', 'vitae', 'mollis'];
window.sentences = ['Curabitur tempus lobortis faucibus.', 'Nulla sed consequat libero.', 'Phasellus bibendum neque eros, vel malesuada ligula fermentum et.', 'Vivamus pretium vulputate imperdiet.', 'Morbi eleifend urna ac purus auctor, non porttitor massa semper.', 'Ut tempor ante et mauris sagittis, sed vestibulum urna rhoncus.', 'Mauris quis augue fermentum, auctor metus quis, imperdiet lectus.', 'Morbi nec rhoncus lectus.', 'Nulla cursus venenatis urna maximus bibendum.', 'Cras at ornare tortor.', 'Nulla nulla justo, posuere id ultricies non, feugiat et nisi.', 'Duis porttitor aliquet viverra.', 'Integer vehicula fringilla velit, at iaculis dolor imperdiet vel.'];
forceFeed({words: window.words, sentences: window.sentences});
</script>
And of course this isn't working, because forceFeed is not a function. But I can't come up with anything else how I should "execute" it as you describe it.
After that, I put your script as you said after my content, before the </body>
Maybe you could help me out here.
I know I have to learn JS and thats what I do, but as I said, I just started.
Thanks in advance
The text was updated successfully, but these errors were encountered:
I'm really new to JS and I'm at the very beginning of learning. So this might be a "dumb" question.
But how do I set up the array correctly in this case?
I've put this in my
<head>
And of course this isn't working, because
forceFeed
is not a function. But I can't come up with anything else how I should "execute" it as you describe it.After that, I put your script as you said after my content, before the
</body>
Maybe you could help me out here.
I know I have to learn JS and thats what I do, but as I said, I just started.
Thanks in advance
The text was updated successfully, but these errors were encountered: