Explain Codes LogoExplain Codes Logo

Javascript

When are you supposed to use escape instead of encodeURI / encodeURIComponent?

javascript
url-encoding
javascript-functions
web-development

Can I insert elements to the beginning of an element using .appendChild()?

javascript
dom-manipulation
javascript-api
prototypejs

How to do something before form submission?

javascript
async-await
javascript-promises
form-validation

How do I split a string with multiple separators in JavaScript?

javascript
regex
string-manipulation
functions

What is the difference between the different methods of putting JavaScript code in an ``?

javascript
event-listeners
fallback-mechanisms
progressive-enhancement

Angularjs - placeholder for empty result from filter

javascript
angularjs
filtering
accessibility

React JSX: selecting "selected" on selected option

javascript
conditional-rendering
state-management
accessibility

Getting Unexpected Token Export

javascript
module-export
javascript-versions
transpilation

Apply CSS styles to an element depending on its child elements

javascript
dom-manipulation
css-selectors
javascript-techniques

How can I get a character array from a string?

javascript
unicode
regex
performance

Auto-scaling input[type=text] to width of value?

javascript
responsive-design
performance
best-practices

How to reset ReactJS file input

javascript
react
file-input
reset

Jquery UI tooltip does not support html content

javascript
jquery
tooltip
xss

Regular expression to match non-ASCII characters?

javascript
unicode-properties
regex-engineering
browser-compatibility

Execute the setInterval function without delay the first time

javascript
prompt-engineering
best-practices
functions

How can you encode a string to Base64 in JavaScript?

javascript
base64-encoding
javascript-functions
utf-8

How to disable JavaScript in Chrome Developer Tools?

javascript
debugging
chrome-devtools
javascript-management

Chrome Dev Tools - Modify javascript and reload

javascript
chrome-dev-tools
local-overrides
javascript-modification

Create a hexadecimal colour based on a string with JavaScript

javascript
prompt-engineering
functions
performance

Adding a parameter to the URL with JavaScript

javascript
url-manipulation
ajax
url-search-params