Explain Codes LogoExplain Codes Logo

Javascript

Get protocol, domain, and port from URL

javascript
url-api
web-workers
url-parsing

Set date in input type date

javascript
prompt-engineering
functions
callbacks

Jquery click events firing multiple times

javascript
event-delegation
event-handling
javascript-best-practices

How to access the request body when POSTing using Node.js and Express?

javascript
express
middleware
request-handling

How to properly unload/destroy a VIDEO element

javascript
memory-leaks
video-element
browser-performance

Is there a way to check if geolocation has been DECLINED with Javascript?

javascript
prompt-engineering
permissions-api
geolocation

Es6 class variable alternatives

javascript
class-fields
getters-and-setters
performance-implications

How to determine if a number is odd in JavaScript

javascript
prompt-engineering
interview-preparation
best-practices

How to get the entire document HTML as a string?

javascript
web-development
xmlserializer
dom-tree

How can I pad a value with leading zeros?

javascript
prompt-engineering
functions
performance

Typescript: No index signature with a parameter of type 'string' was found on type '{ "A": string; }'

javascript
typescript
keyof
type-assertions

Calling a function every 60 seconds

javascript
timers
setinterval
settimeout

Add SVG element to existing SVG using DOM

javascript
svg-manipulation
dom-nesting
browser-compatibility

Specifying content of an iframe instead of the src attribute to a page

javascript
prompt-engineering
functions
data-urls

Insert HTML with React Variable Statements (JSX)

javascript
jsx
react
html-parsing

How do I create formatted javascript console log messages

javascript
console-logging
javascript-features
debugging

How do I disable text selection with CSS or JavaScript?

javascript
selection-prevention
user-experience
browser-compatibility

How do I call a JavaScript function on page load?

javascript
async
callbacks
promises

How to communicate between iframe and the parent site?

javascript
cross-domain-communication
event-listeners
message-handling

How to pass parameters on onChange of html select

javascript
event-handling
html-select
javascript-chronicles