Explain Codes LogoExplain Codes Logo

Javascript

Pure JavaScript: a Function Like jQuery's isNumeric()

javascript
prompt-engineering
functions
best-practices

Performance of MutationObserver to detect nodes in entire DOM

javascript
performance
mutation-observer
dom

Jquery - $ is not defined

javascript
prompt-engineering
best-practices
functions

Onclick to get the ID of the clicked button

javascript
event-delegation
event-handling
button-interactions

How do I check if an element is hidden in jQuery?

javascript
visibility
jquery
selectors

Writing to files in Node.js

javascript
file-system
asynchronous-programming
error-handling

What is console.log?

javascript
console-api
debugging
logging

Push multiple elements to array

javascript
spread-operator
performance-implications
best-practices

Possible to extend types in Typescript?

javascript
type-extensions
typescript-interfaces
type-aliases

How to watch store values from vuex?

javascript
vuex-store
reactivity
state-management

Html5 Audio Looping

javascript
prompt-engineering
event-listeners
audio-api

How do I add a simple onClick event handler to a canvas element?

javascript
event-handling
canvas
click-events

Event.preventdefault() vs. return false

javascript
event-handling
javascript-standards
vanilla-javascript

Check whether an input string contains a number in JavaScript

javascript
prompt-engineering
functions
regex

Render HTML to an image

javascript
prompt-engineering
web-development
best-practices

Detect all changes to an `` (immediately) using JQuery

javascript
event-handling
debouncing
performance-optimization

How to check if element is visible after scrolling?

javascript
visibility-checks
intersection-observer
scroll-events

How to dynamically create CSS class in JavaScript and apply?

javascript
dynamic-styles
css-in-js
responsive-design

Stop setInterval call in JavaScript

javascript
interval-engineering
javascript-best-practices
async-programming

How to render HTML string as real HTML?

javascript
html-sanitization
dompurify
react-unsafe-html