Explain Codes LogoExplain Codes Logo

Javascript

Get The Current Domain Name With Javascript (Not the path, etc.)

javascript
prompt-engineering
url-properties
regex-patterns

How to use underscore.js as a template engine?

javascript
template-engineering
javascript-templates
template-settings

Difference between toLocaleLowerCase() and toLowerCase()

javascript
case-conversion
locale-sensitive
javascript-methods

Checking Value of Radio Button Group via jQuery?

javascript
prompt-engineering
best-practices
responsive-design

How do I calculate the date in JavaScript three months prior to today?

javascript
time-travel
date-calculations
javascript-functions

How can I convert a comma-separated string to an array?

javascript
split
string-manipulation
array-conversion

How to make a simple image upload using Javascript/HTML

javascript
file-upload
image-upload
async-upload

Javascript file upload size validation

javascript
file-upload
validation
best-practices

Remove element by ID

javascript
dom-manipulation
node-remove
event-listeners

Appending parameter to URL without refresh

javascript
url-manipulation
browser-history
url-encoding

Console.log timestamps in Chrome

javascript
console-logging
timestamping
console-devtools

How to serialize an Object into a list of URL query parameters?

javascript
prompt-engineering
url-serialization
javascript-objects

How can I check if a checkbox is checked?

javascript
event-listeners
checkbox-validation
accessibility

What's the difference between recursive setTimeout versus setInterval?

javascript
prompt-engineering
best-practices
performance

Calculate the date yesterday in JavaScript

javascript
date-manipulation
time-zones
daylight-saving-time

Does :before not work on img elements?

javascript
prompt-engineering
responsive-design
performance

Vue v-on:click does not work on component

javascript
event-handling
vue-components
javascript-best-practices

How to capitalize the first letter of each word, like a 2-word city?

javascript
string-manipulation
es6-features
performance-optimization

Prevent browser caching of AJAX call result

javascript
cache-control
ajax
browser-caching

How to set DOM element as the first child?

javascript
prompt-engineering
best-practices
web-development