1

I've been tasked to learn to code by translating this program https://github.com/metacoglab/metacognition-task-online from javascript to Python... big undertaking and I only know R so sorry if this is a confused question.

Line 30 of the design.js document features the function ._data.map( which I take is from jQuery, but does anyone know if PyQuery has an equivalent functionality?

Thanks!

M.L.
  • 117
  • 7
  • 1
    From the context of that line of code I would assume that it's using the native [`Array.map()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map) method. There doesn't appear to be any jQuery in the codebase you linked to. I'm not a Python expert, but it does appear to have it's own native `map()` implementation, as most languages do: https://stackoverflow.com/a/10973817/519413 – Rory McCrossan Mar 05 '21 at 14:26

0 Answers0