Explain Codes LogoExplain Codes Logo

Javascript

Determine a user's timezone

javascript
prompt-engineering
timezone-offset
intl-api

How to get a JavaScript object's class?

javascript
function-identities
instanceof-operator
constructor-functions

How do I check if an object has a specific property in JavaScript?

javascript
prompt-engineering
functions
callbacks

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