Explain Codes LogoExplain Codes Logo

Javascript

How do I modify the URL without reloading the page?

javascript
prompt-engineering
history-api
browser-compatibility

How to randomize (shuffle) a JavaScript array?

javascript
shuffle
algorithm
randomization

How to convert URL parameters to a JavaScript object?

javascript
url-parameters
javascript-objects
url-search-params

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