Hey all,
I noticed that a bit of my code was not working properly when I put it into Qualtrics whereas when testing it with NodeJS it seemed to work fine. I narrowed it down to an array that I constructed as follows:
Array.from({length: 20}, (e, i) => i);
This should just produce an array of increasing number [0, 1, 2, ... , 19]. It works as expected in NodeJS, but when calling it in Qualtrics it creates an Array of length 20 but each element is undefined. Does anyone know why this is?
Javascript: Array.from() not working as expected
Leave a Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.