Explain Codes LogoExplain Codes Logo

Javascript

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

Is it possible to append to innerHTML without destroying descendants' event listeners?

javascript
dom-manipulation
event-listeners
appendchild

How can I do string interpolation in JavaScript?

javascript
template-literals
string-interpolation
es6

Invalid date in safari

javascript
date-fns
moment-js
regex

Copy folder recursively in Node.js

javascript
fs-extra
async-await
promises

Javascript regex multiline text between two tags

javascript
regex
multiline
flags

Inserting string at a specific position in a string using JavaScript

javascript
prompt-engineering
functions
callbacks

How to add a “readonly” attribute to an <input>?

javascript
dom-manipulation
javascript-best-practices
jquery

How to identify if a webpage is being loaded inside an iframe or directly into the browser window?

javascript
iframe-detection
cross-origin-restrictions
same-origin-policy

How to get the onclick calling object?

javascript
event-handling
unobtrusive-javascript
event-delegation

Text Blinking jQuery

javascript
best-practices
functions
callbacks