Explain Codes LogoExplain Codes Logo

Javascript

How can I extract a number from a string in JavaScript?

javascript
regex
string-manipulation
parseint

How to find event listeners on a DOM node in JavaScript or in debugging?

javascript
event-listeners
performance
debugging

Sort array of objects by string property value

javascript
sorting
case-insensitive
dynamic-sort

How do you check that a number is NaN in JavaScript?

javascript
nan
ecmascript
polyfill

How do I add a delay in a JavaScript loop?

javascript
settimeout
async-await
deferred-callbacks

How to subtract days from a plain Date?

javascript
date-manipulation
time-zones
momentjs

How do I redirect to another webpage?

javascript
redirects
user-navigation
single-page-applications

Ecmascript 6 arrow function that returns an object

javascript
arrow-functions
es6
destructuring

How can I select an element by name with jQuery?

javascript
jquery
selectors
web-development

Changing cursor to waiting in javascript/jquery

javascript
cursor
jquery
ajax

File Upload without Form

javascript
file-upload
formdata
fetch-api

Colors in JavaScript console

javascript
console-styling
debugging
customization

Why would a JavaScript variable start with a dollar sign?

javascript
jquery
coding-guidelines
best-practices

Image loaded event in for ng-src in AngularJS

javascript
image-loading
angularjs
error-handling

How do I read the contents of a Node.js stream into a string variable?

javascript
streams
buffers
encoding

Detecting arrow key presses in JavaScript

javascript
key-events
browser-compatibility
default-actions

How to get the first character of a string?

javascript
string-manipulation
unicode
browser-compatibility

How to take a screenshot of a div with JavaScript?

javascript
html2canvas
promises
cross-browser

Convert php array to Javascript

javascript
json-encoding
data-transfer
ajax

Response to preflight request doesn't pass access control check - No 'Access-Control-Allow-Origin' header

javascript
cORS
http-headers
local-development