Skip to content

Category: Questions

get name of input variable (like Function.name)

I have a Function in which I want to retrieve the name of the variable that was used to call the function. How can I do that? If variable was a Function, I could use variable.name. I am aware of this, but it will only return “variable”, not the name of the variable that was put into the function. …

Parametrize on() function jquery

I have different user inputs. When one of them is changed I want to capture a change event only to its value. I’m trying to customize the code of an existing product. My goal is to pop up an error div when user input is wrong but my current code adds the error div under all inputs. This code works

React useState conversion

I made a static webpage app that I have been slowly converting to React (MERN stack) to make it more dynamic/so I won’t have to configure each and every HTML document. It’s a product configurator that uses Google’s model-viewer. I’m fairly new to using a full-stack workflow but have fo…

What is Liveness in JavaScript?

Trying to examine intricacies of JavaScript GC, I got deep into the weeds (that is, into the ECMAScript spec). It was found by me that an object should not be collected as long as it is deemed “live”. And liveness itself is defined as follows: At any point during evaluation, a set of objects S is …