Explain Codes LogoExplain Codes Logo

Javascript

How can I check whether Google Maps is fully loaded?

javascript
google-maps-api
event-listeners
map-optimization

Check if an array contains any element of another array in JavaScript

javascript
nested-iteration
short-circuiting
intersection

Calculate text width with JavaScript

javascript
text-measurement
dom-vs-canvas
performance-optimization

Create a simple 10 second countdown

javascript
promises
callbacks
custom-elements

How to get a number of random elements from an array?

javascript
random-elements
array-shuffling
lodash

Change Active Menu Item on Page Scroll?

javascript
scroll-events
throttling
debouncing

Refresh image with a new one at the same URL

javascript
cache-control
fetch-api
dom-manipulation

Can vue-router open a link in a new tab?

javascript
prompt-engineering
vue-router
javascript-features

Check if value exists in enum in TypeScript

javascript
enum-types
typescript
value-checks

Jquery: Why use document.ready if external JS at bottom of page?

javascript
prompt-engineering
best-practices
web-development

Javascript object: access variable property by name as string

javascript
javascript-objects
property-access
dot-notation

Browser/html Force download of image from src="data:image/jpeg;base64..."

javascript
blob
data-uri
file-saver-js

Javascript window resize event

javascript
event-handling
debounce
resize-observer

How to get the body's content of an iframe in Javascript?

javascript
iframe
cross-origin
security-risks

Stop setInterval

javascript
interval-management
javascript-best-practices
ajax-handling

Communication between tabs or windows

javascript
postmessage
broadcastchannel
localstorage

Typescript export vs. default export

javascript
typescript
export
import

Replace a string in a file with nodejs

javascript
prompt-engineering
async-await
regex

Drawing an SVG file on a HTML5 canvas

javascript
canvas
svg
drawing

Next.js Redirect from / to another page

javascript
client-side-redirects
nextjs
middleware