Sobes.tech

What problems do you see with the global object window.handlers and event handler conflicts?

Senior
255

What issues do you see with using async/await in this code and how can they be fixed?

Senior
219

What is a memory leak and how does the garbage collector work in JavaScript?

Senior
174

Suggest a correct inheritance model for Button and Input classes instead of the current one where Input extends Button.

Senior
153

What symbols need to be escaped to protect against XSS attacks?

Senior
153

What architectural issues do you see in the addField method with type checks via if?

Senior
152

How to correctly modify a fetch request for secure transmission of sensitive data?

Senior
144

What validation and sanitization methods can be applied to user input on the client side?

Senior
141

How to correctly insert custom text into the DOM, preserving HTML markup but avoiding XSS?

Senior
139

How to eliminate memory leaks when removing an element from the DOM if the event handler is stored in a global object?

Senior
139

Why is using var and searching for elements by index (querySelectorAll()[0]) considered bad practice?

Senior
135

What security issues are associated with using innerHTML for inserting user input?

Senior
135

Explain the inheritance problem in code where a class extends Object, and suggest a solution.

Senior
129

Explain how reactivity works in Vue 3: reactive, ref, shallowReactive, markRaw.

Senior
121

What security issues do you see in transmitting login and password via URL query parameters?

Senior
120

Why is addField called in the constructor in the code and what problems does it create in terms of scalability?

Senior
107