how to convert a block to js
-
how can i use a block in javascript? i want to use blocks in javascript, in event listeners, but how do i do that?
-
What is the context? Could you share more about what you are trying to do and why you need to call a block in JavaScript?
-
@brian i was trying to use the addEventListener to listen for the key up/down event. and that when it listens to that event, it runs a block, other than a js functon.
-
@brian nvm. got it. i used the catch errors library to help me.