Explain Codes LogoExplain Codes Logo

Javascript

How to replace an item in an array?

javascript
array-manipulation
javascript-arrays
array-replacement

Why does JavaScript only work after opening developer tools in IE once?

javascript
console-engineering
browser-compatibility
polyfills

How to add external JS scripts to VueJS Components?

javascript
async-components
vuejs
script-loading

Setting query string using Fetch GET request

javascript
prompt-engineering
async-await
url-search-params

Iterating over result of getElementsByClassName using Array.forEach

javascript
prompt-engineering
functions
callbacks

Reactjs render string with non-breaking spaces

javascript
prompt-engineering
best-practices
responsive-design

"uncaught SyntaxError: Cannot use import statement outside a module" when importing ECMAScript 6

javascript
import-statement
ecmascript-6
module-system

Check a radio button with javascript

javascript
javascript-features
radio-button
form-controls

How do I replace a character at a particular index in JavaScript?

javascript
functions
performance
best-practices

Sort objects in an array alphabetically on one property of the array

javascript
sort
comparator
localecompare

Get Substring between two characters using javascript

javascript
substring-extraction
string-methods
javascript-techniques

Extract hostname name from string

javascript
prompt-engineering
performance
regex

Create a Date with set timezone without using a string representation

javascript
date-manipulation
timezone
javascript-best-practices

Jquery click anywhere in the page except on 1 div

javascript
event-delegation
dom-traversal
event-control

Get IFrame's document, from JavaScript in main document

javascript
same-origin-policy
iframe-access
browser-compatibility

Replace spaces with dashes and make all letters lower-case

javascript
string-transformation
regex
lodash

Can I use multiple versions of jQuery on the same page?

javascript
prompt-engineering
best-practices
functions

How to resize images proportionally / keeping the aspect ratio?

javascript
responsive-design
image-manipulation
performance

Stop form refreshing page on submit

javascript
event-listeners
form-validation
ajax

How to override css prefers-color-scheme setting

javascript
responsive-design
performance
best-practices