Skip to content
Discussion options

You must be logged in to vote

It looks like you're adding elements to the holdingCell array inside the on_timeline_finish function, which means this array won't have any elements until the likingRatingTask_1 timeline ends. However your console.log lines are in your main script, which runs when the page first loads, at which point the holdingCell array doesn't contain anything.

So try moving your console.log lines into the end of the on_timeline_finish function, so that you can check the value of the array after the elements have been added:

on_timeline_finish: function() {
  var imageNames = ['salad', 'pear', 'lollipop', 'grapes', 'cotton candy', 'cookie', 'carrot', 'cake', 'brownie', 'apple']; //list the category names

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sophief10
Comment options

Answer selected by sophief10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants