Forum Discussion
StefanKoler-a6f
8 months agoCommunity Member
JavaScript - Change state, if cursor position is within xMin/xMax of Object.
Hi, I am trying to create a visual indicator for a table so that learners see in which collumn and row the cursor currently is.
I created an object for each collumn and row. Now I am trying to...
Nedim
8 months agoCommunity Member
Your script has a few issues that will cause it to break. For example:
const objekteX = oIDs.map(createObjectData);
const objekteY = sIDs.map(createObjectData);
In this code, oIDs and sIDs are not defined anywhere, so this will result in a ReferenceError. JavaScript needs those variables to be declared and assigned before you can call .map() on them. Is this what you're trying to achieve with this interaction?